joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007b90
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x10007bcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWinRing::InstallWinRing__OpenSCManager__errorcode_d
call sym.HardwareLib.dll_DebugStringW
add esp, 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0xf01ff
push str.iobit_monitor_server
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10007c08
call ebx
push eax
push str.CWinRing::InstallWinRing__OpenService__errorcode_d
call sym.HardwareLib.dll_DebugStringW
add esp, 8
mov ecx, edi
call fcn.10007c70
mov esi, eax
test esi, esi
je 0x10007c3c
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10007c2e
call ebx
push eax
push str.CWinRing::InstallWinRing__StartService__errorcode_d
call sym.HardwareLib.dll_DebugStringW
add esp, 8
mov dword [ebp - 4], 0
test esi, esi
je 0x10007c39
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, str.success
test esi, esi
jne 0x10007c51
mov eax, str.error
push eax
push str.CWinRing::InstallWinRing___s
call sym.HardwareLib.dll_DebugStringW
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10007e50
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10024080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf01ff
push str.iobit_monitor_server
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x10007e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CWinRing::UninstallWinRing__OpenService__errorcode_d
call sym.HardwareLib.dll_DebugStringW
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008214
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10007edc
call ebx
push eax
push str.CWinRing::UninstallWinRing__ControlService__errorcode_d
call sym.HardwareLib.dll_DebugStringW
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x10007ef7
call ebx
push eax
push str.CWinRing::UninstallWinRing__DeleteService__errorcode_d
call sym.HardwareLib.dll_DebugStringW
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.CWinRing::UninstallWinRing__success
call sym.HardwareLib.dll_DebugStringW
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10008214
mov esp, ebp
pop ebp
ret

Function at 0x10008214
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10024080]
jne 0x1000821e
repz ret
jmp fcn.1000953d
Function at 0x100109cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10024080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000a628
and dword [ebp - 0x14], 0
cmp dword [0x100260a0], 0
mov dword [ebp - 0x18], eax
jne 0x10010a7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10010b27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10010b27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100260a0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100260a4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100260a8], eax
call edi
push eax
call esi
mov dword [0x100260b0], eax
test eax, eax
je 0x10010a7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100260ac], eax
mov eax, dword [0x100260ac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10010ad8
cmp dword [0x100260b0], ecx
je 0x10010ad8
push eax
call esi
push dword [0x100260b0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10010ad8
test ebx, ebx
je 0x10010ad8
call edi
test eax, eax
je 0x10010acf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10010acf
test byte [ebp - 8], 1
jne 0x10010ad8
or dword [ebp + 0x10], 0x200000
jmp 0x10010b0b
mov eax, dword [0x100260a4]
cmp eax, dword [ebp - 0x18]
je 0x10010b0b
push eax
call esi
test eax, eax
je 0x10010b0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10010b0b
mov eax, dword [0x100260a8]
cmp eax, dword [ebp - 0x18]
je 0x10010b0b
push eax
call esi
test eax, eax
je 0x10010b0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100260a0]
call esi
test eax, eax
je 0x10010b27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10010b29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008214
leave
ret
Function at 0x10014da0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x10014e1b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.10010c7a
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10014dd7
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x10014dee
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.10010c7a
add esp, 4
test eax, eax
jbe 0x10014e1b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.10010c7a
add esp, 4
cmp esi, eax
jb 0x10014e00
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10015ec0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x10026680], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x10015f56
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x10026680
mov dword [0x10026680], 0x11c
mov dword [0x10026684], 6
mov dword [0x10026688], 1
mov word [0x10026794], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x10024f30], eax
jmp 0x10015f5b
mov eax, dword [0x10024f30]
cmp eax, esi
je 0x10015f6a
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x1001608a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x10016088
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x10016088
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x10016088
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x10015fc0
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x1001603f
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x10016088
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10016088
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x10016088
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10016026
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x1001e2ac
push 0x26
jmp 0x10016045
cmp word [esi + edi*2 - 4], 0x5c
je 0x10016053
push 0x100203b4
add edi, 1
push edi
push esi
call fcn.10015d00
jmp 0x10016053
push 0x1001e2ac
push eax
call fcn.10015da0
mov esi, eax
add esp, 8
test esi, esi
je 0x10016088
push esi
call fcn.10010c7a
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.100124aa
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x10016088
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x10015fc0
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x10016430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.100162c0
mov esi, eax
add esp, 4
test esi, esi
je 0x10016472
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10016454
test al, 0x50
je 0x10016472
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10016467
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x1000b470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.1000b470]
mov dword [0x100433e0], 0x204f
mov dword [ebp - 8], eax
mov dword [0x100433e0], 0x1768
jmp 0x1000b49d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1000b4ec
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x1000b4be
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x1000b495
jmp 0x1000b4be
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x100433dc]
sub eax, 0xd15
mov dword [0x100433e0], eax
mov al, 1
test al, 1
jne 0x1000b49d
jmp 0x1000b4e5
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret

Function at 0x1000b550
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x100433e0]
add ecx, 0x12c5
mov dword [0x100433dc], ecx
mov dword [ebp - 0x10], 0
jmp 0x1000b5db
jmp 0x1000b6fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x1000b6a2
jmp 0x1000b6fb
mov eax, dword [0x100433e0]
add eax, 0x21f
mov dword [0x100433dc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x18
pop ebp
ret
jmp 0x1000b702
jmp 0x1000b620
cmp dword [ebp - 0x10], 0x104
setl al
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x15]
test al, 1
jne 0x1000b5f1
jmp 0x1000b620
mov eax, dword [0x100433dc]
add eax, 0x191d
mov dword [0x100433dc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
je 0x1000b5d9
jmp 0x1000b613
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x1000b5db
mov dword [0x100433dc], 0x25ac
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x1000b5b6
mov eax, dword [0x100433e0]
sub eax, 0xe19
mov dword [0x100433dc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
jne 0x1000b702
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x1000b5d4
mov eax, dword [0x100433e0]
add eax, 0x2553
mov dword [0x100433e0], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x1000b59b
jmp 0x1000b6fd
mov dword [0x100433dc], 0xe07
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
sete dl
mov byte [ebp - 0x16], dl
mov al, byte [ebp - 0x16]
test al, 1
jne 0x1000b6ce
jmp 0x1000b596
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x1000b6f6
mov dword [0x100433dc], 0x147c
mov dword [ebp - 4], 1
jmp 0x1000b5cc
jmp 0x1000b596
jmp 0x1000b6fd
jmp 0x1000b5d4
jmp 0x1000b5b6
Function at 0x10004b5f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x148
push ebx
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
mov dword [esi + 0x1004], eax
cmp eax, ebx
jne 0x10004b8b
xor al, al
jmp 0x10004d88
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Prepare
push eax
call edi
push str.Open
push dword [esi + 0x1004]
mov dword [esi + 0x11e0], eax
call edi
push str.Close
push dword [esi + 0x1004]
mov dword [esi + 0x11e4], eax
call edi
push str.GetNextName
push dword [esi + 0x1004]
mov dword [esi + 0x11e8], eax
call edi
push str.GetListItem
push dword [esi + 0x1004]
mov dword [esi + 0x11ec], eax
call edi
push str.Extract
push dword [esi + 0x1004]
mov dword [esi + 0x11f0], eax
call edi
push str.GetComment
push dword [esi + 0x1004]
mov dword [esi + 0x11f4], eax
call edi
mov dword [esi + 0x11f8], eax
cmp dword [esi + 0x11e0], ebx
je 0x10004d85
cmp dword [esi + 0x11e4], ebx
je 0x10004d85
mov edi, 0x148
push edi
lea eax, [ebp - 0xd0]
push ebx
push eax
call fcn.1000f8d0
add esp, 0xc
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], 0x10004acc
mov dword [ebp - 0xc8], fcn.10003d51
mov dword [ebp - 0xc4], fcn.10003d51
mov dword [ebp - 0x98], 0x10003d54
mov dword [ebp - 0xbc], 0x10003d59
mov dword [ebp - 0xb0], 0x10003d5f
mov dword [ebp - 0xac], fcn.10003d62
mov dword [ebp - 0xa4], 0x10004b02
mov dword [ebp - 0xa0], 0x10003df0
mov dword [ebp - 0xa8], 0x10004b02
mov dword [ebp - 0x94], 0x10003d63
mov dword [ebp - 0x90], 0x10003d68
mov dword [ebp - 0xb8], 0x10004acc
mov dword [ebp - 0x88], 0x10003d6d
mov dword [ebp - 0xb4], 0x10003dd7
mov dword [ebp - 0x9c], fcn.1000746a
mov dword [ebp - 0x84], 0x10003ddc
mov dword [ebp - 0x80], 0x10003de1
mov dword [ebp - 0x7c], 0x10003de6
mov dword [ebp - 0x78], 0x10003deb
mov dword [ebp - 0xc0], 0x10003df0
mov dword [ebp - 0x8c], 0x10003df3
mov dword [ebp - 0x74], fcn.1000746a
call fcn.10007d92
mov ebx, 0x1d8
push ebx
lea edi, [esi + 0x1008]
push 0
push edi
mov dword [ebp - 4], eax
call fcn.1000f8d0
add esp, 0xc
mov dword [edi], ebx
push edi
lea eax, [ebp - 0xd0]
lea ebx, [esi + 0x100c]
push eax
mov dword [ebx], 2
mov dword [esi + 0x1010], 0x50100
call dword [esi + 0x11e0]
test al, al
je 0x10004d72
cmp dword [ebx], 2
jne 0x10004d72
mov al, 1
jmp 0x10004d87
push dword [esi + 0x1004]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x1004], 0
xor al, al
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x10004b6b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x148
push ebx
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
mov dword [esi + 0x1004], eax
cmp eax, ebx
jne 0x10004b8b
xor al, al
jmp 0x10004d88
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Prepare
push eax
call edi
push str.Open
push dword [esi + 0x1004]
mov dword [esi + 0x11e0], eax
call edi
push str.Close
push dword [esi + 0x1004]
mov dword [esi + 0x11e4], eax
call edi
push str.GetNextName
push dword [esi + 0x1004]
mov dword [esi + 0x11e8], eax
call edi
push str.GetListItem
push dword [esi + 0x1004]
mov dword [esi + 0x11ec], eax
call edi
push str.Extract
push dword [esi + 0x1004]
mov dword [esi + 0x11f0], eax
call edi
push str.GetComment
push dword [esi + 0x1004]
mov dword [esi + 0x11f4], eax
call edi
mov dword [esi + 0x11f8], eax
cmp dword [esi + 0x11e0], ebx
je 0x10004d85
cmp dword [esi + 0x11e4], ebx
je 0x10004d85
mov edi, 0x148
push edi
lea eax, [ebp - 0xd0]
push ebx
push eax
call fcn.1000f8d0
add esp, 0xc
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xcc], 0x10004acc
mov dword [ebp - 0xc8], fcn.10003d51
mov dword [ebp - 0xc4], fcn.10003d51
mov dword [ebp - 0x98], 0x10003d54
mov dword [ebp - 0xbc], 0x10003d59
mov dword [ebp - 0xb0], 0x10003d5f
mov dword [ebp - 0xac], fcn.10003d62
mov dword [ebp - 0xa4], 0x10004b02
mov dword [ebp - 0xa0], 0x10003df0
mov dword [ebp - 0xa8], 0x10004b02
mov dword [ebp - 0x94], 0x10003d63
mov dword [ebp - 0x90], 0x10003d68
mov dword [ebp - 0xb8], 0x10004acc
mov dword [ebp - 0x88], 0x10003d6d
mov dword [ebp - 0xb4], 0x10003dd7
mov dword [ebp - 0x9c], fcn.1000746a
mov dword [ebp - 0x84], 0x10003ddc
mov dword [ebp - 0x80], 0x10003de1
mov dword [ebp - 0x7c], 0x10003de6
mov dword [ebp - 0x78], 0x10003deb
mov dword [ebp - 0xc0], 0x10003df0
mov dword [ebp - 0x8c], 0x10003df3
mov dword [ebp - 0x74], fcn.1000746a
call fcn.10007d92
mov ebx, 0x1d8
push ebx
lea edi, [esi + 0x1008]
push 0
push edi
mov dword [ebp - 4], eax
call fcn.1000f8d0
add esp, 0xc
mov dword [edi], ebx
push edi
lea eax, [ebp - 0xd0]
lea ebx, [esi + 0x100c]
push eax
mov dword [ebx], 2
mov dword [esi + 0x1010], 0x50100
call dword [esi + 0x11e0]
test al, al
je 0x10004d72
cmp dword [ebx], 2
jne 0x10004d72
mov al, 1
jmp 0x10004d87
push dword [esi + 0x1004]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x1004], 0
xor al, al
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x10006c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x10006c5d
test cl, 7
je 0x10006c5d
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x10028d58]
dec esi
inc ecx
jmp 0x10006c3e
cmp esi, 8
jb 0x10006d00
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x10029158]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x10028d58]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x10029558]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x10029d58]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x1002a158]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x1002a558]
movzx edx, dl
xor edi, dword [edx*4 + 0x10029958]
movzx eax, al
xor edi, dword [eax*4 + 0x1002a958]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x10006c6f
pop ebx
jmp 0x10006d00
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x10028d58]
dec esi
inc ecx
test esi, esi
ja 0x10006cec
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10007843
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, 0x4e20
jne 0x1000786a
cmp dword [ebp + 0xc], edi
jbe 0x1000785f
mov dword [ebp + 0xc], edi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100078d3
mov ecx, esi
call fcn.100077fd
test al, al
je 0x100078a0
cmp dword [ebp + 0xc], edi
jbe 0x100078a0
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.10007843
jmp 0x100078d6
cmp dword [esi + 0xc], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x100078b7
call ebx
cmp eax, 0x6d
jne 0x100078b7
xor eax, eax
jmp 0x100078d6
cmp dword [esi + 0xc], 0
jne 0x100078ce
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x100078ce
call ebx
cmp eax, 0x21
je 0x10007893
or eax, 0xffffffff
jmp 0x100078d6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10007ad5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.1000fa70
mov eax, dword [0x10025190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10007b23
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.10008745
test al, al
je 0x10007b23
lea eax, [ebp - 0x1004]
push eax
call esi
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000f767
leave
ret 4
Function at 0x10008745
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.1000fa70
mov eax, dword [0x10025190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x10008771
xor al, al
jmp 0x1000894e
push edi
call fcn.10008310
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1000877c
sub eax, edx
push ebx
sar eax, 1
mov ebx, eax
push edi
mov dword [ebp - 0x1008], ebx
call fcn.10008675
test al, al
je 0x10008846
push edi
call fcn.10008310
test al, al
je 0x100087e1
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x1000894b
push 4
push 0x10020790
push esi
call fcn.100100cf
lea edx, [esi + 8]
add esp, 0xc
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x100087ce
jmp 0x10008947
cmp word [edi], 0x5c
jne 0x1000894b
add edi, 2
cmp word [edi], 0x5c
jne 0x1000894b
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x1000894b
push 4
push 0x10020790
push esi
call fcn.100100cf
mov eax, 0x10020788
lea edx, [esi + 8]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x1000881e
lea edx, [esi + 0xe]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x10008833
jmp 0x10008947
lea eax, [ebp - 0x1004]
push eax
mov ebx, 0x7ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000894b
cmp eax, ebx
ja 0x1000894b
movzx eax, word [edi]
push eax
call fcn.100081f6
test al, al
je 0x100088c4
mov eax, dword [ebp - 0x1008]
add eax, 6
cmp dword [ebp + 0x10], eax
jbe 0x1000894b
push 4
push 0x10020790
push esi
call fcn.100100cf
push 2
lea eax, [ebp - 0x1004]
push eax
lea eax, [esi + 8]
push eax
call fcn.100100cf
lea edx, [esi + 0xc]
add esp, 0x18
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x100088b1
jmp 0x10008947
push 0x800
lea eax, [ebp - 0x1004]
push eax
call fcn.1000821b
lea eax, [ebp - 0x1004]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100088de
mov ecx, dword [ebp - 0x1008]
sub eax, edx
sar eax, 1
lea eax, [eax + ecx + 4]
cmp dword [ebp + 0x10], eax
jbe 0x1000894b
push 4
push 0x10020790
push esi
call fcn.100100cf
lea eax, [ebp - 0x1004]
lea edx, [esi + 8]
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x10008918
cmp word [edi], 0x2e
jne 0x1000893d
movzx eax, word [edi + 2]
push eax
call fcn.100081f6
test al, al
je 0x1000893d
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.1000e0db
mov al, 1
jmp 0x1000894d
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000f767
leave
ret 0xc