joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061e2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x41b214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, 0x4183dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x44], ebx
mov byte [ebx + 0x2e], 0
call fcn.00404e86
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x406217
lea eax, [ebp - 0x1c]
push eax
lea edi, [ebx + 4]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00405d40
lea ecx, [ebx + 0x20]
push ecx
mov esi, eax
call fcn.00405c65
push edi
call fcn.00405db4
push 0
push 0xbb8
push 0xfa1
push dword [edi]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0x41c850]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
mov dword [ebp - 0x40], eax
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x67
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x80
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41c850]
push 0
push 0x32
mov dword [ebp - 0x40], eax
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x67
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x80
push dword [edi]
mov dword [ebp - 0x48], eax
call esi
call fcn.00405c14
mov dword [ebp - 0x40], eax
mov eax, dword [ebx + 0x464]
test eax, eax
je 0x4062df
cmp eax, dword [ebp - 0x40]
je 0x4062df
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x40]
push 0x3ec
mov dword [ebx + 0x464], eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [ebx + 0x464]
push 0x30
push eax
call esi
mov ecx, dword [ebp - 0x48]
lea eax, [ebx + 0x448]
mov dword [ebx + 0x444], ecx
cmp dword [eax + 0x18], 8
jb 0x40631c
mov eax, dword [eax + 4]
jmp 0x40631f
add eax, 4
push ecx
push eax
push edi
lea esi, [ebx + 0x34]
call fcn.004035b6
test eax, eax
jne 0x406354
mov edi, ebx
call fcn.00406465
xor edi, edi
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00403ae3
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004076ec
leave
ret
mov eax, str.ck_W_vN
lea ecx, [ebp - 0x3c]
call fcn.00404e86
lea edi, [ebp - 0x3c]
mov esi, ebx
call fcn.00406a13
push 0x5c
call fcn.004078d8
xor esi, esi
cmp eax, esi
pop ecx
je 0x406385
mov ebx, eax
call fcn.00404159
mov ebx, dword [ebp - 0x44]
jmp 0x406387
xor eax, eax
mov dword [ebx + 0x30], eax
lea eax, [ebp - 0x4c]
push eax
push esi
push ebx
push 0x4067ed
push esi
push esi
mov dword [ebp - 0x4c], esi
call fcn.004084cf
add esp, 0x18
xor edi, edi
push esi
inc edi
push edi
lea esi, [ebp - 0x3c]
mov dword [ebx + 0x28], eax
call fcn.00403ae3
jmp 0x406337

Function at 0x4063b4
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x418], 0
je 0x4063d3
add esi, 0x34
call fcn.00403588
xor eax, eax
pop esi
ret
Function at 0x4063d7
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [esi + 4]
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [esi + 0x448]
mov byte [esi + 0x2e], 1
cmp dword [eax + 0x18], 8
jb 0x406403
mov eax, dword [eax + 4]
jmp 0x406406
add eax, 4
push 0x124
push eax
push str._fT
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x40642a
push 0
push dword [esi + 4]
mov byte [esi + 0x2d], 1
call edi
mov byte [esi + 0x2e], 0
xor eax, eax
pop edi
ret

Function at 0x4068c2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41b214]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x4068eb
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004076ec
leave
ret
lea ecx, [ebx + 0x24]
call fcn.004042c3
mov ecx, dword [ebx + 0x30]
call fcn.004042c6
test al, al
jne 0x406905
mov byte [ebx + 0x2d], 1
jmp 0x4068dc
push esi
push edi
push 0x64
mov eax, ebx
call fcn.0040687b
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3ed
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, str.ck_W
lea ecx, [ebp - 0x20]
call fcn.00404e86
push ebx
lea eax, [ebp - 0x20]
call fcn.0040689e
lea edi, [ebp - 0x20]
mov esi, ebx
call fcn.00406a13
mov ecx, dword [ebx + 0x30]
call fcn.00404c2b
test al, al
jne 0x406979
mov byte [ebx + 0x2d], 1
xor bl, bl
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00403ae3
pop edi
mov al, bl
pop esi
jmp 0x4068de
mov eax, 0x418508
lea esi, [ebp - 0x20]
call fcn.00403a77
push ebx
mov eax, esi
call fcn.0040689e
mov edi, esi
mov esi, ebx
call fcn.00406a13
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebx + 0x2c], 1
mov bl, 1
jmp 0x406964

Function at 0x4070e5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41b214]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040707a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00407c10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x407134
cmp dword [ebp - 0x1c], 5
jb 0x40714c
jmp 0x407148
cmp dword [ebp - 0x10], 1
jne 0x40714c
cmp dword [ebp - 0x1c], 4
ja 0x407148
jne 0x40714c
cmp dword [ebp - 0x18], 0
jbe 0x40714c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4163b0
call fcn.004010d5
test eax, eax
jge 0x40716d
mov byte [0x41d494], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004076ec
add ebp, 0x78
leave
ret
Function at 0x4073ec
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41c8b0], 0
push esi
jne 0x40735f
call fcn.0040728a
test eax, eax
je 0x4073a2
mov eax, dword [0x41c8b0]
cmp eax, 1
jne 0x407380
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4073a2
pop esi
ret
push eax
call dword [0x41c8b8]
test eax, eax
jne 0x4073ea
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4073a6
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x41c8b0]
call dword [0x41c8b8]
mov edi, eax
test edi, edi
je 0x4073cd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4073e9
lea edi, [esi + 0xff0]
push esi
push dword [0x41c8b0]
call dword [0x41c8b4]
add esi, 0x10
cmp esi, edi
jb 0x4073d3
mov eax, esi
pop edi
pop esi
ret
jmp 0x40734c

Function at 0x4076ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b214]
jne 0x4076f6
repz ret
jmp fcn.0040a9c8
Function at 0x40a6bc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41b348]
je 0x40a6d7
inc edi
cmp edi, 0x17
jb 0x40a6c8
cmp edi, 0x17
jae 0x40a857
push ebp
push 3
call fcn.0040eee2
cmp eax, 1
pop ecx
je 0x40a823
push 3
call fcn.0040eee2
test eax, eax
pop ecx
jne 0x40a70b
cmp dword [0x41b210], 1
je 0x40a823
cmp ebx, 0xfc
je 0x40a856
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41ca80
push ebp
call fcn.0040b395
add esp, 0xc
test eax, eax
je 0x40a741
push esi
push esi
push esi
push esi
push esi
call fcn.00407f40
add esp, 0x14
push 0x104
mov esi, 0x41ca99
push esi
push 0
mov byte [0x41cb9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a785
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040b395
add esp, 0xc
test eax, eax
je 0x40a785
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407f40
add esp, 0x14
push esi
call fcn.00407e40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a7ca
push esi
call fcn.00407e40
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41cd94
push 0x4169f4
sub ecx, eax
push ecx
push eax
call fcn.0040ee2f
add esp, 0x14
test eax, eax
je 0x40a7ca
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407f40
add esp, 0x14
jmp 0x40a7cc
xor esi, esi
push 0x4169f0
push ebx
push ebp
call fcn.0040edbe
add esp, 0xc
test eax, eax
je 0x40a7ec
push esi
push esi
push esi
push esi
push esi
call fcn.00407f40
add esp, 0x14
push dword [edi*8 + 0x41b34c]
push ebx
push ebp
call fcn.0040edbe
add esp, 0xc
test eax, eax
je 0x40a80e
push esi
push esi
push esi
push esi
push esi
call fcn.00407f40
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040ec01
add esp, 0xc
jmp 0x40a856
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40a856
cmp ebp, 0xffffffff
je 0x40a856
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41b34c]
push dword [esi]
call fcn.00407e40
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40ec01
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040aba6
xor ebx, ebx
cmp dword [0x41d364], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40ecd7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40edb7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40edb7
push eax
call fcn.0040ab38
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d364], eax
call esi
push eax
call fcn.0040ab38
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d368], eax
call esi
push eax
call fcn.0040ab38
mov dword [0x41d36c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040a449
test eax, eax
pop ecx
pop ecx
je 0x40eca5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f40
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40ecd7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ab38
cmp eax, ebx
pop ecx
mov dword [0x41d374], eax
je 0x40ecd7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ab38
pop ecx
mov dword [0x41d370], eax
mov eax, dword [0x41d370]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40ed5c
cmp dword [0x41d374], ecx
je 0x40ed5c
push eax
call fcn.0040abaf
push dword [0x41d374]
mov esi, eax
call fcn.0040abaf
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40ed5c
cmp edi, ebx
je 0x40ed5c
call esi
cmp eax, ebx
je 0x40ed29
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ed29
test byte [ebp - 0x18], 1
jne 0x40ed5c
lea eax, [ebp - 0x10]
push eax
call fcn.0040a480
test eax, eax
pop ecx
je 0x40ed44
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407f40
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40ed53
or dword [ebp + 0x10], 0x200000
jmp 0x40ed97
or dword [ebp + 0x10], 0x40000
jmp 0x40ed97
mov eax, dword [0x41d368]
cmp eax, dword [ebp - 8]
je 0x40ed97
push eax
call fcn.0040abaf
cmp eax, ebx
pop ecx
je 0x40ed97
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40ed97
mov eax, dword [0x41d36c]
cmp eax, dword [ebp - 8]
je 0x40ed97
push eax
call fcn.0040abaf
cmp eax, ebx
pop ecx
je 0x40ed97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d364]
call fcn.0040abaf
cmp eax, ebx
pop ecx
je 0x40edb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40edb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10020d3e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10020d4d
pop dword [ebp - 0x34]
mov eax, 0xa37a3911
sub eax, 0x93782bc4
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xaf824734
add dword [ebp - 0x44], 0x9ecffe17
mov dword [ebp - 0x40], 0xe7e80c5b
sub dword [ebp - 0x40], 0xb5b4c016
mov dword [ebp - 0x3c], 0x1905bb59
add dword [ebp - 0x3c], 0x334688d5
mov dword [ebp - 0x38], 0x442c69f3
add dword [ebp - 0x38], 0xbbd3960d
lea eax, [ebp - 0x44]
push eax
mov eax, 0xaac26d49
add eax, 0x6540e3cf
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xb5fefeaf
sub dword [ebp - 0x44], 0x418c9559
mov dword [ebp - 0x40], 0x32e7cb91
sub dword [ebp - 0x40], 0xf17b6a1c
mov dword [ebp - 0x3c], 0x9a3c5c3e
sub dword [ebp - 0x3c], 0x36ccefd2
mov dword [ebp - 0x38], 0xd6d6adf3
add dword [ebp - 0x38], 0x2929520d
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3c91d
push 0
call eax
mov ecx, 0x45c3f46
add ecx, 0xfba40ec0
mov edx, eax
mov esi, 0x3e0a50ac
add esi, 0xd1fe3354
add esi, dword [ebp - 0x34]
mov ebx, 0x2a67a938
add ebx, 0x223b60ac
mov dword [ebp - 0x18], 0xe0064957
mov edi, dword [esi]
mov dword [ebp - 0xc], 0x992c4b06
sub edi, ebx
add dword [ebp - 0xc], ebx
mov dword [edx], edi
xor dword [ebp - 0x24], 0x1b89b752
add edx, 0x7d4c084c
add edx, 0x82b3f7b8
add esi, 4
loop 0x10020e6a
add eax, 0x12aeb
mov ebx, eax
add eax, 0x7d640ec9
add eax, 0x829bf13c
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401763
test al, 0x10
jne 0x401763
mov al, 1
ret
xor al, al
ret
Function at 0x421040
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42107f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42107f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42107f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42107f
cmp dword [ecx + 0x74], 0xe
jbe 0x42107f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4280ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4367e8
push 0x4367e0
push str.FlsAlloc
push 0x1f
call fcn.00428008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x428120
push dword [ebp + 8]
mov ecx, esi
call dword [0x43314c]
call esi
jmp 0x428126
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42816a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4367f8
push 0x4367f0
push str.FlsGetValue
push 0x21
call fcn.00428008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4281a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x43314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4281a9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436800
push 0x4367f8
push str.FlsSetValue
push 0x22
call fcn.00428008
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4281e3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42bbbb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42bc58
push ebx
push esi
call fcn.0042bb84
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042ab22
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42bc05
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42bc57
push edi
push eax
call fcn.0042889b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42bc25
call fcn.00427eb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42bc56
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042ab22
add esp, 0x20
test eax, eax
jne 0x42bc44
push edi
call fcn.00427eb4
jmp 0x42bc4c
push ebx
call fcn.00427eb4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x431cf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431d1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431d1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4e9390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x498015
lea edi, [esi - 0x97015]
mov dword [edi + 0xb182c], 0x4ccf60e4
push edi
or ebp, 0xffffffff
jmp 0x4e93ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e93c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e93b0
mov eax, 1
add ebx, ebx
jne 0x4e93d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e93e4
jne 0x4e9403
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e9403
dec eax
add ebx, ebx
jne 0x4e93f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e93c8
add ebx, ebx
jne 0x4e93ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e9455
xor ecx, ecx
sub eax, 3
jb 0x4e941b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e948a
sar eax, 1
mov ebp, eax
jmp 0x4e9426
add ebx, ebx
jne 0x4e9426
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e93f4
inc ecx
add ebx, ebx
jne 0x4e9434
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e93f4
add ebx, ebx
jne 0x4e9441
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e9436
jne 0x4e9452
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e9436
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e9474
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e9466
jmp 0x4e93b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e9474
add edi, ecx
jmp 0x4e93b6
pop esi
mov edi, esi
mov ecx, 0x3ab1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e9492
cmp byte [edi], 0xa
jne 0x4e9492
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e9497
lea edi, [esi + 0xe3000]
mov eax, dword [edi]
or eax, eax
je 0x4e950f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf0768]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf0880]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e94c4
mov ecx, edi
jns 0x4e94f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf0884]
or eax, eax
je 0x4e9509
mov dword [ebx], eax
add ebx, 4
jmp 0x4e94e1
call dword [esi + 0xf0894]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e9540
cmp al, 0xef
ja 0x4e9533
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e9515
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e9522
mov ebp, dword [esi + 0xf0888]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e9574
sub esp, 0xffffff80
jmp 0x443850
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 sym.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_class_ScCore::Variant_const__
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 sym.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_class_ScCore::Variant_const__
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 sym.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_class_ScCore::Variant_const__
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 sym.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_class_ScCore::Variant_const__
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 sym.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_class_ScCore::Variant_const__
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 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 sym.ScCore.dll_public:_class_ScCore::Variant____thiscall_ScCore::Variant::operator_class_ScCore::Variant_const__
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