joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005037a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
push dword [0x1006f080]
mov dword [ebp - 0x18], 0x1006f080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push edi
push 0
push ebx
mov dword [ebp - 4], 0
call sub.MSVCR120.dll_memset
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
call sub.MSVCR120.dll_memset
mov ecx, 0x1006f000
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a912
sub ecx, edx
je 0x1002a960
mov ecx, 0x1006f040
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002a925
sub ecx, edx
je 0x1002a960
mov esi, dword [sym.imp.MSVCR120.dll_sprintf_s]
push 0x1006f000
push 0x10059e24
push edi
push ebx
call esi
mov eax, dword [ebp + 0x14]
push 0x1006f040
push 0x10059e24
push eax
mov eax, dword [ebp + 0x10]
push eax
call esi
add esp, 0x20
jmp 0x1002aa68
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x324], ax
lea eax, [ebp - 0x322]
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x324]
push 0x104
push eax
call sym.KwLib.dll_bool___cdecl_KwLib::UserId::GetVirtualIdFilePath_wchar_t__const__int_
add esp, 0x14
test al, al
je 0x1002aa1f
push 0x103
lea eax, [ebp - 0x11b]
mov byte [ebp - 0x11c], 0
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x1005a434
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0x18
test eax, eax
jne 0x1002aa1f
push dword [ebp - 0x14]
lea eax, [ebp - 0x11c]
push 0x104
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fread]
push dword [ebp - 0x14]
call dword [sym.imp.MSVCR120.dll_fclose]
lea ecx, [ebp - 0x11c]
add esp, 0x14
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002aa00
sub ecx, edx
jne 0x1002aa23
lea ecx, [ebp - 0xdc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002aa14
sub ecx, edx
jne 0x1002aa23
xor bl, bl
jmp 0x1002aa6a
mov esi, dword [sym.imp.MSVCR120.dll_memmove]
lea eax, [ebp - 0x11c]
push 0x40
push eax
push 0x1006f000
call esi
push 0x40
lea eax, [ebp - 0xdc]
push eax
push 0x1006f040
call esi
push edi
lea eax, [ebp - 0x11c]
push eax
push ebx
call esi
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp + 0x10]
push eax
call esi
add esp, 0x30
mov bl, 1
push dword [0x1006f080]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002b890
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
je 0x1002b8e6
cmp dword [esi + 0x14], 0x10
jb 0x1002b8a8
mov eax, dword [esi]
jmp 0x1002b8aa
mov eax, esi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x1002b92e
cmp dword [esi + 0x14], 0x10
jb 0x1002b8cd
mov esi, dword [esi]
push 1
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call edi
pop edi
xor al, al
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 0x10
jb 0x1002b8f0
mov eax, dword [esi]
jmp 0x1002b8f2
mov eax, esi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
push 0
push eax
push str.iexplore.exe
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x1002b92e
cmp dword [esi + 0x14], 0x10
jb 0x1002b918
mov esi, dword [esi]
push 1
push 0
push 0
push esi
push str.open
push 0
call edi
pop edi
xor al, al
pop esi
pop ebp
ret
pop edi
mov al, 1
pop esi
pop ebp
ret

Function at 0x1002be20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1002be39
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [ebp - 0x54], 0x44
push 0x400
push eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x28], 1
call sub.MSVCR120.dll_memset
mov edi, dword [ebp + 0xc]
add esp, 0x18
test edi, edi
je 0x1002bec4
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002be88
sub ecx, edx
mov al, byte [ecx + edi - 1]
cmp al, 0x2f
je 0x1002bea6
cmp al, 0x5c
je 0x1002bea6
push esi
push edi
push 0x1005a658
jmp 0x1002bead
push esi
push edi
push 0x1005a660
lea eax, [ebp - 0x454]
push 0x3ff
push eax
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0x14
jmp 0x1002bedf
push esi
push 0x10059e24
lea eax, [ebp - 0x454]
push 0x3ff
push eax
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x454]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
test eax, eax
je 0x1002be31
cmp byte [ebp + 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002bf2b
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002d770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push 0x1005a444
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR120.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1002d885
mov eax, dword [ebp - 4]
test eax, eax
je 0x1002d885
push esi
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push edi
push 2
push 0
push eax
call esi
push dword [ebp - 4]
call dword [sym.imp.MSVCR120.dll_ftell]
push 0
push 0
push dword [ebp - 4]
mov edi, eax
call esi
add esp, 0x1c
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [ebp - 4]
mov esi, eax
test esi, esi
jne 0x1002d7e7
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 1
push esi
call dword [sym.imp.MSVCR120.dll_fread]
push dword [ebp - 4]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
lea eax, [ebp - 8]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002d834
lea ecx, [ebp - 0xc]
push ecx
push 0x10053588
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
jne 0x1002d843
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
push 4
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CopyImage]
mov ecx, dword [ebp - 0xc]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002d9e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1006f16c]
sub esp, 0x9c
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x1002da05
xor eax, eax
test ecx, ecx
cmovne eax, dword [0x1006f168]
mov dword [esi], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1002da19
xor eax, eax
test ecx, ecx
cmovne eax, dword [0x1006f164]
mov dword [edi], eax
test ecx, ecx
je 0x1002da28
mov eax, dword [0x1006f160]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x9c
lea eax, [ebp - 0x9c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x9c], 0x9c
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1002da7a
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1002da7a
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x94]
mov dword [0x1006f168], ecx
mov dword [0x1006f164], eax
test esi, esi
je 0x1002da97
mov dword [esi], ecx
test edi, edi
je 0x1002da9d
mov dword [edi], eax
mov eax, dword [ebp - 0x8c]
sub eax, 2
je 0x1002daac
xor eax, eax
jmp 0x1002dab2
cmp ecx, 6
sbb eax, eax
inc eax
pop edi
mov dword [0x1006f160], eax
mov dword [0x1006f16c], 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002f190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10050883
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x10], 0x10053968
mov dword [esp + 0x20], 0x10053960
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0xd0], 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 2
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [esp + 0xcc], 1
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x10], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [esp + ecx + 0xc], eax
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP120.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [esp + 0x28], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0xcc], 3
mov eax, dword [esi]
mov eax, dword [eax]
cmp dword [eax + 0x5c], 0x10
lea esi, [eax + 0x48]
jb 0x1002f25e
mov esi, dword [esi]
mov ecx, dword [eax + 0x68]
mov edx, str.error_row:
mov eax, dword [eax + 0x64]
inc ecx
push ecx
push ecx
inc eax
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.10005cc0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, str._terror_col:
mov ecx, eax
call fcn.10005cc0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, str._terror_description:
mov ecx, eax
call fcn.10005cc0
mov edx, esi
mov ecx, eax
call fcn.10005cc0
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push esi
call fcn.10005470
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x10], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [esp + edx + 0xc], ecx
lea ecx, [esp + 0x28]
call fcn.10005490
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [esp + 0xc4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002fcf0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fee8
push 0x1004e4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
push 0xffffffffffffffff
push dword [0x1006f098]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
xor eax, eax
mov word [ebp - 0x22c], ax
push 0x208
push eax
lea eax, [ebp - 0x22a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call fcn.10001e70
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x1005a8d8
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR120.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1002fdc2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002fdc2
push eax
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR120.dll_fwrite]
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_fclose]
add esp, 0x14
jmp 0x1002fdc2
mov dword [ebp - 4], 0xffffffff
push dword [0x1006f098]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1002fe1b
mov byte [ebp - 0x224], 0
push 0x1ff
push 0
lea eax, [ebp - 0x223]
push eax
call sub.MSVCR120.dll_memset
push esi
push 0x1005a8dc
push 0x1ff
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR120.dll__snprintf]
add esp, 0x1c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10031ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10050a6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, ecx
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
lea ecx, [esi + 0x14]
mov byte [esp + 0x44], 1
lea edx, [esp + 0x20]
call fcn.10032ad0
lea edx, [esp + 8]
lea ecx, [esi + 0x2c]
call fcn.10032ad0
push 1
push 0
lea eax, [esp + 0xc]
mov byte [esp + 0xc], 0x22
push eax
lea ecx, [esi + 0x2c]
call fcn.10004040
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x10031bc1
test edx, edx
je 0x10031b7f
cmp dword [esp + 0x1c], 0x10
lea ecx, [esp + 8]
lea eax, [esp + 0x20]
cmovae ecx, dword [esp + 8]
cmp dword [esp + 0x34], 0x10
push ecx
cmovae eax, dword [esp + 0x24]
push eax
push str._s__s_
push edx
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10031c35
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.100022e0
push 2
push 0x1005a95c
mov ecx, esi
call fcn.10001f40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.100022e0
push 1
push 0x100538a4
jmp 0x10031c2e
test edx, edx
je 0x10031bf2
cmp dword [esp + 0x1c], 0x10
lea ecx, [esp + 8]
lea eax, [esp + 0x20]
cmovae ecx, dword [esp + 8]
cmp dword [esp + 0x34], 0x10
push ecx
cmovae eax, dword [esp + 0x24]
push eax
push str._s_s
push edx
call dword [sym.imp.MSVCR120.dll_fprintf]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10031c35
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.100022e0
push 2
push 0x1005a968
mov ecx, esi
call fcn.10001f40
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.100022e0
push 1
push 0x1005a96c
mov ecx, esi
call fcn.10001f40
cmp dword [esp + 0x1c], 0x10
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10031c4b
push dword [esp + 8]
call esi
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
jb 0x10031c70
push dword [esp + 0x20]
call esi
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10031eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x10031f0c
cmp byte [edi + 0x40], bl
jne 0x10031f03
mov edx, dword [str.Failed_to_open_file]
mov byte [edi + 0x40], 1
mov dword [edi + 0x44], 2
cmp byte [edx], bl
jne 0x10031edd
xor ecx, ecx
jmp 0x10031eeb
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031ee2
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0x48]
call fcn.10001a10
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x64], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov esi, dword [edi + 0x18]
test esi, esi
je 0x10031f22
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x10031f13
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call esi
push ebx
call dword [sym.imp.MSVCR120.dll_ftell]
push 0
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov eax, dword [ebp + 8]
add esp, 0x1c
test eax, eax
jg 0x10031f9c
cmp byte [edi + 0x40], 0
jne 0x10031f03
mov edx, dword [str.Error_document_empty.]
mov byte [edi + 0x40], 1
mov dword [edi + 0x44], 0xc
cmp byte [edx], 0
je 0x10031ed9
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x10031f90
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031f90
jmp 0x10031ee9
inc eax
push eax
call fcn.10013326
push ebx
mov ebx, dword [ebp + 8]
mov esi, eax
push 1
push ebx
push esi
mov byte [esi], 0
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x10031ffd
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp byte [edi + 0x40], 0
jne 0x10031f03
mov edx, dword [str.Failed_to_open_file]
mov byte [edi + 0x40], 1
mov dword [edi + 0x44], 2
cmp byte [edx], 0
je 0x10031ed9
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031ff1
jmp 0x10031ee9
mov byte [esi + ebx], 0
mov eax, esi
cmp byte [esi], 0
mov ecx, esi
je 0x1003202c
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, 0xd
jne 0x10032023
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x10032027
jmp 0x10032026
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x10032010
mov byte [ecx], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push 0
push esi
call dword [eax + 8]
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
cmp byte [edi + 0x40], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10032190
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050aaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x10053860
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.10001a10
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10032850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050b12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], 0
mov byte [eax + 0x14], 0
mov dword [eax + 0x40], 0xf
mov dword [eax + 0x3c], 0
mov byte [eax + 0x2c], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edx], 0
jne 0x1003292d
xor eax, eax
jmp 0x1003293d
mov eax, edx
push ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10032933
sub eax, ebx
pop ebx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.10001a10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10037000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1003700b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10036d40

Function at 0x10037a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x10037abc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call sub.MSVCR120.dll_memcpy
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x10037a8f
sub eax, esi
jmp 0x10037a91
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x10037a80
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x10037aaf
sub eax, esi
jmp 0x10037ab1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x10037aa0
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x10037b78
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x10037ae9
xor eax, eax
jmp 0x10037b3c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x10037b06
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.10036720
jmp 0x10037b1e
cmp eax, 2
jne 0x10037b24
mov edx, dword [ebx]
test edx, edx
jne 0x10037b15
xor eax, eax
jmp 0x10037b21
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.10036d40
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x10037b64
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x10037b78
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x10037a40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret