joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014f0
Capabilities:
Check os version
Create thread

Disassembly:
sub esp, 0x9c
push esi
push edi
mov esi, ecx
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 8], 0x9c
mov dword [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esi + 0x110], 4
mov dword [esi + 0x114], 4
mov dword [esi + 0x108], 0
mov dword [esi + 0x104], 0
call edi
test eax, eax
jne 0x1000155f
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
inc eax
mov dword [edi + 0x14], 0x9e
mov dword [edi + 0x10], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 0x1000c1ac
push edi
call fcn.100020b0
mov eax, dword [esp + 0x28]
add esp, 0x1c
cmp eax, 4
jbe 0x10001673
cmp eax, 6
jb 0x100015cf
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x10001673
mov ecx, esi
call fcn.10002020
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret 4
push 0
push 0
mov ecx, esi
call fcn.100019d0
test eax, eax
je 0x10001625
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
inc eax
mov dword [edi + 0x14], 0xaf
mov dword [edi + 0x10], eax
mov edx, dword [esi + 0x114]
mov eax, dword [esi + 0x110]
push edx
push eax
push 0x1000c1a0
push edi
call fcn.100020b0
add esp, 0x18
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret 4
mov ecx, 0x41
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.10001680
add esp, 4
test eax, eax
je 0x10001673
push 0x1000c198
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esi + 0x10c]
mov dword [esi + 0x104], eax
push ecx
push 0
push esi
push 0x10001f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x108], eax
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret 4
Function at 0x10001680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100097a8
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100016bb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
lea eax, [esp + 0x14]
push eax
call fcn.100018b0
add esp, 4
cmp word [esp + 0x14], 9
mov esi, 0x910
jne 0x10001706
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
inc eax
push 0x1000c208
push esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x50
call fcn.100020b0
add esp, 0x10
mov esi, 0x14c2
push 0x1000c1f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
test ebx, ebx
mov dword [esp + 0x40], 0
jne 0x10001772
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000c1ec
push edi
call fcn.100014b0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov ecx, esi
push ebp
and ecx, 0xffff
push 5
push ecx
push ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x100017c7
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
mov dword [edi + 0x14], 0x62
add esp, 8
inc eax
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000c1ec
push edi
call fcn.100014b0
add esp, 0x10
jmp 0x10001877
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100017ef
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
mov dword [edi + 0x14], 0x6a
jmp 0x100017a5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x10001816
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
mov dword [edi + 0x14], 0x72
jmp 0x100017a5
cmp word [eax], 1
jne 0x10001827
cmp word [eax + 2], 0xffff
lea ebp, [eax + 0x1e]
je 0x1000182a
lea ebp, [eax + 0x16]
mov ebx, dword [esp + 0x4c]
push 0
push 0
push 0x104
push ebx
push 0xffffffffffffffff
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrvidip.cpp
mov edi, eax
call sub.MSVCRT.dll_strrchr
push ebx
push esi
inc eax
push 0x1000c1e4
push edi
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0x84
call fcn.100020b0
mov ebx, dword [esp + 0x28]
add esp, 0x18
xor edx, edx
push ebx
test ebp, ebp
setne dl
mov esi, edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x3c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x100018b0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x100097c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x1000c224
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [esp + 4], esi
push 0x1000c210
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100018f9
mov ecx, dword [esp + 0x18]
push ecx
call eax
jmp 0x10001904
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test esi, esi
je 0x1000190f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10001920
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x110]
cmp eax, 4
je 0x10001933
test eax, eax
jne 0x10001942
mov ecx, dword [esi + 0x114]
cmp ecx, 4
je 0x10001951
test ecx, ecx
je 0x10001951
mov ecx, dword [esi + 0x114]
push ecx
push eax
mov ecx, esi
call fcn.100019d0
mov eax, dword [esi + 0x108]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100019a3
mov edx, dword [esi + 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x108]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001990
mov ecx, dword [esi + 0x108]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x108]
push edx
call edi
mov dword [esi + 0x108], 0
mov eax, dword [esi + 0x104]
test eax, eax
je 0x100019ba
push eax
call edi
mov dword [esi + 0x104], 0
push 0x1000c248
push 0x1000c234
call fcn.10001240
add esp, 8
pop edi
pop esi
ret
Function at 0x10002020
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call fcn.100031a0
add esp, 8
test eax, eax
jne 0x10002043
add esp, 0x104
ret
lea ecx, [esp]
push 0x1000c248
push ecx
call section..text
add esp, 8
test eax, eax
jne 0x10002060
add esp, 0x104
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
add esp, 0x104
ret

Function at 0x10002340
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xc]
mov ebx, ecx
push eax
push edi
mov dword [esp + 0x14], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x100023cf
push esi
call sub.MSVCRT.dll_malloc
add esp, 4
mov dword [ebx + 0x38], eax
test eax, eax
je 0x100023cf
push eax
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100023cf
mov eax, dword [ebx + 0x38]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x1000c3ec
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100023cf
mov esi, dword [esp + 0x18]
lea eax, [ebx + 4]
mov ecx, 0xd
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
xor ecx, ecx
cmp edx, 0xfeef04bd
sete cl
mov dword [ebx + 0x48], ecx
mov eax, dword [ebx + 0x48]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x10003c80
Capabilities:
Query environment variable

Disassembly:
call fcn.10005af0
test eax, eax
je 0x10003c8e
jmp fcn.10005350
jmp fcn.100048a0
Function at 0x10004240
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
test eax, eax
push ebx
push esi
push edi
je 0x10004380
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor esi, esi
cmp dword [esi*4 + 0x1000d388], 0xffffffff
jne 0x100042a5
push esi
lea eax, [esp + 0x14]
push str.._rsmd5_02d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call ebx
cmp eax, 0xffffffff
mov dword [esi*4 + 0x1000d388], eax
je 0x10004320
mov eax, dword [esi*4 + 0x1000d388]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0
push 0
push 0
push 0x222087
push eax
call edi
test eax, eax
je 0x10004337
mov edx, dword [esi*4 + 0x1000d388]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x22208b
push edx
call edi
test eax, eax
je 0x10004337
mov ecx, dword [esi*4 + 0x1000d388]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x222083
push ecx
call edi
inc esi
cmp esi, 0x20
jl 0x10004263
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100043a6
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviSrnBlocker.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x123
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000c158
push esi
call fcn.100014b0
push 0
call fcn.10004240
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x1000d388
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x1000439b
push eax
call edi
mov dword [esi], 0xffffffff
add esi, 4
cmp esi, 0x1000d408
jl 0x1000438b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret

Function at 0x10004510
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, dword [0x1000d388]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x1000452e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1000d388], 0xffffffff
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x10004583
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviSrnBlocker.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x18b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1000c158
push esi
call fcn.100014b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x1c
ret
push ebx
push 0xf01ff
push str.rsmh5
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x100045b9
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x10005740
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10009928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor esi, esi
push 0x1000c224
mov dword [esp + 0x14], esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1000578a
push str.Wow64DisableWow64FsRedirection
push eax
call ebp
cmp eax, esi
je 0x1000578a
lea ecx, [esp + 0x10]
push ecx
call eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10005823
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x10005823
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviStdAfx.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
add esp, 8
inc eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x6b
call ebx
push eax
push 0x1000c9d0
push esi
call fcn.100014b0
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
je 0x1000580e
push 0x1000c224
call edi
test eax, eax
je 0x1000580e
push str.Wow64RevertWow64FsRedirection
push eax
call ebp
test eax, eax
je 0x1000580e
mov edx, dword [esp + 0x10]
push edx
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], 0xffffffff
je 0x10005861
push 0x1000c224
call edi
test eax, eax
je 0x10005861
push str.Wow64RevertWow64FsRedirection
push eax
call ebp
test eax, eax
je 0x10005861
mov ecx, dword [esp + 0x10]
push ecx
call eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100062a0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10006268
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10006263
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000624d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10006255
cmp edx, ebx
jne 0x100063a3
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10006224
add eax, dword [eax + 4]
jmp sym.drvi.dll_Vrvd5_GetFiles
mov dword [ebp + 0xc], ebx
jmp 0x10006273
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000628b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100062a9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
test bh, al
clc
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10006307
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100062ee
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100062f7
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10006301
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100062e3
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000626d
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10006354
dec eax
je 0x1000634b
sub eax, 3
je 0x10006342
mov dword [ebp - 4], 0x40
jmp 0x10006371
mov dword [ebp - 4], 4
jmp 0x10006357
mov dword [ebp - 4], 0x20
jmp 0x10006357
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100063a3
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10006323
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10005bb4
and al, 2
arpl word [eax + 0x6a1475ff], si
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x100063af
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008010
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x658
mov eax, dword [esp + 0x660]
mov ecx, dword [esp + 0x65c]
push esi
push edi
push eax
push ecx
lea edx, [esp + 0x68]
push str.rundll32__s___s
push edx
call sub.MSVCRT.dll_sprintf
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], 0
add esp, 0x10
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
push eax
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10008191
mov eax, dword [esp + 8]
test eax, eax
je 0x10008191
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviVrvd5Setup.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
lea ecx, [esp + 0x68]
inc eax
push ecx
push str.X86.In_CreateProcess:__s__n
push esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x476
call fcn.10008290
mov edx, dword [esp + 0x1c]
add esp, 0x14
mov dword [esp + 0x18], 0
push 0x7530
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10008148
mov ecx, dword [esp + 8]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviVrvd5Setup.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
inc eax
push str.X86.CreateProcess_done__n
push esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x47e
call fcn.10008290
add esp, 0x10
mov eax, 1
pop edi
pop esi
add esp, 0x658
ret 8
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviVrvd5Setup.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
inc eax
push str.X86.In_TerminateProcess__n
push esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x483
call fcn.10008290
mov ecx, dword [esp + 0x18]
add esp, 0x10
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop edi
mov eax, 1
pop esi
add esp, 0x658
ret 8
call fcn.10005670
push 0x5c
push str.F:RC50WSSC50SCap24_srcdrviVrvd5Setup.cpp
mov esi, eax
call sub.MSVCRT.dll_strrchr
lea edx, [esp + 0x68]
inc eax
push edx
push str.X86.In_CreateProcess:__s__n
push esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x48b
call fcn.100014b0
add esp, 0x14
xor eax, eax
pop edi
pop esi
add esp, 0x658
ret 8
Function at 0x100084e0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x84
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
push edi
mov edi, dword [esp + 0x90]
mov dword [esi], edi
je 0x10008507
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov dword [esi + 8], 0
test edi, 0x800
je 0x10008566
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10008566
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x10]
push str.RC5_Debug_Console_PID._d_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [esi + 8]
mov word [esp + 8], 0x96
mov word [esp + 0xa], 0x12c
mov edx, dword [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
pop edi
pop esi
add esp, 0x84
ret 4
Function at 0x10008580
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40c
push ebx
mov ebx, dword [esp + 0x414]
push ebp
mov ebp, ecx
mov eax, dword [ebp]
and eax, ebx
cmp eax, ebx
jne 0x1000871f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__ftime]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [esp + 0x428]
add esp, 8
test ecx, ecx
je 0x10008603
mov edx, dword [esp + 0x424]
push edx
movzx edx, word [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x424]
push ecx
mov ecx, dword [eax]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
push ebx
call fcn.10008730
add esp, 4
push eax
lea ecx, [esp + 0x34]
push 0x1000a2c0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x28
jmp 0x10008639
movzx ecx, word [esp + 0xc]
mov edx, dword [esp + 0x41c]
push edx
mov edx, dword [eax]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
push edx
push ebx
call fcn.10008730
add esp, 4
push eax
lea eax, [esp + 0x2c]
push 0x1000a29c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
mov ecx, dword [esp + 0x42c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x428]
push edx
lea eax, [esp + eax + 0x18]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov eax, dword [ebp + 4]
add esp, 0xc
test eax, eax
mov byte [esp + 0x413], 0
je 0x10008681
push eax
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x100086ec
push esi
mov esi, ebx
and esi, 1
push edi
je 0x100086ad
push 0xc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x1c]
repne scasb al, byte es:[edi]
push 0
not ecx
lea edx, [esp + 0x430]
push edx
dec ecx
push ecx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
pop edi
test esi, esi
pop esi
je 0x100086ec
push 7
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp]
test ah, 4
je 0x1000871f
test bl, 1
je 0x1000871f
mov edx, dword [ebp + 0xc]
and bl, 6
neg bl
lea eax, [esp + 0x14]
sbb ebx, ebx
and ebx, 0x30
add ebx, 0x10
push ebx
push edx
push eax
push 0
mov dword [esp + 0x434], ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop ebx
add esp, 0x40c
ret 0x18
Function at 0x10008850
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10009988
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push ebp
mov ebp, dword [esp + 0x34]
push esi
push 0x1000a344
push ebp
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x1000898c
push edi
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10008979
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, 0xa
jge 0x100088f5
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call fcn.10009210
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0
call fcn.10009270
push 0x1000a344
push ebp
call ebx
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x34], 0xffffffff
call fcn.10009250
mov ebx, dword [esp + 0x40]
lea eax, [ebx + ebx]
cmp edi, eax
jle 0x10008979
mov ecx, ebx
push 2
neg ecx
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10008979
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x10008979
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
push 0x1000a340
push ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x1000896f
push esi
push 0x1000a31c
call dword [sym.imp.MSVCRT.dll_fputs]
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x1c
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
test esi, esi
pop edi
je 0x1000898c
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret