joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48798e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4879a8
call fcn.0040e4e3
mov esi, dword [eax + 0xc]
push dword [0x63fd1c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4879c6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4879be
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4879f3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4879c0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004878bc
mov esi, eax
jmp 0x4879e5

Function at 0x4d8e81
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00416dcb
call fcn.0040e601
cmp eax, esi
pop esi
jne 0x4d8e9d
mov ecx, 0x63de88
jmp fcn.0041df32
ret

Function at 0x4dc816
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dc82e
mov edi, dword [esi + 0xc]
jmp 0x4dc86e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4dc847
call fcn.0041b5df
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dc85c
call fcn.0041b5df
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dc86e
call fcn.0041b5df
call fcn.0040e4e3
cmp dword [eax + 0x3c], 0
je 0x4dc883
push edi
mov ecx, ebx
call fcn.004db64a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dc730
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dc8a1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dc8ad
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e1b48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.004e175d
push eax
push esi
push dword [ebp + 8]
call fcn.004e1712
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.004e175d
push eax
push esi
push dword [ebp + 8]
call fcn.004e1712
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.004e174d
inc edi
dec ebx
sbb byte [eax + ecx*4 - 0x63], ah
jl 0x4e1bd2
invalid
invalid

Function at 0x4e1fc8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
insd dword es:[edi], dx
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
invalid
invalid
invalid
cld

Function at 0x4e2a0e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x334]
push eax
call dword [ebp - 0x3c8]
mov dword [ebp - 0x66c], eax
cmp dword [ebp - 0x66c], 0xffffffff
je 0x4e38e0
push 0
push dword [ebp - 0x66c]
call dword [ebp - 0x33c]
mov dword [ebp - 0x378], eax
push dword [ebp - 0x378]
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 4], eax
call fcn.004e174d
and ch, ch
xor al, 0xda
and byte [ebp - 0x6dc], 0
and byte [ebp - 0x6db], 0
mov byte [ebp - 0x6da], 0x2c
and byte [ebp - 0x6d9], 0
inc dword [eax]
mov byte [ebp - 0x6d8], 0x81
mov byte [ebp - 0x6d7], 0xb6
mov byte [ebp - 0x6d6], 0xb2
mov byte [ebp - 0x6d5], 0xb7
mov byte [ebp - 0x6d4], 0x95
mov byte [ebp - 0x6d3], 0xba
mov byte [ebp - 0x6d2], 0xbf
mov byte [ebp - 0x6d1], 0xb6
mov byte [ebp - 0x6d0], 0xd3
call fcn.004e174d
and al, 0x61
xor ebx, edi
lea eax, [ebp - 0x6dc]
push eax
call fcn.004e175d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004e1712
add esp, 0xc
mov dword [ebp - 0x6c8], eax
push 0
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x378]
push dword [ebp - 4]
push dword [ebp - 0x66c]
call dword [ebp - 0x6c8]
mov dword [ebp - 0x6cc], eax
push dword [ebp - 0x66c]
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x4e38e0
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004e16be
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x4e2b5a
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
invalid
invalid
invalid
Function at 0x4fbd5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x629d58]
jne 0x4fbd66
repz ret
jmp fcn.0050514c

Function at 0x516dc0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x629d58]
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.00504b3e
and dword [ebp - 0x14], 0
cmp dword [0x6422f4], 0
mov dword [ebp - 0x18], eax
jne 0x516e73
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x516f1b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x516f1b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5d26b8
push ebx
mov dword [0x6422f4], eax
call edi
push eax
call esi
push 0x5d26a4
push ebx
mov dword [0x6422f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6422fc], eax
call edi
push eax
call esi
mov dword [0x642304], eax
test eax, eax
je 0x516e73
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x642300], eax
mov eax, dword [0x642300]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x516ecc
cmp dword [0x642304], ecx
je 0x516ecc
push eax
call esi
push dword [0x642304]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x516ecc
test ebx, ebx
je 0x516ecc
call edi
test eax, eax
je 0x516ec3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x516ec3
test byte [ebp - 8], 1
jne 0x516ecc
or dword [ebp + 0x10], 0x200000
jmp 0x516eff
mov eax, dword [0x6422f8]
cmp eax, dword [ebp - 0x18]
je 0x516eff
push eax
call esi
test eax, eax
je 0x516eff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x516eff
mov eax, dword [0x6422fc]
cmp eax, dword [ebp - 0x18]
je 0x516eff
push eax
call esi
test eax, eax
je 0x516eff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6422f4]
call esi
test eax, eax
je 0x516f1b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x516f1d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fbd5c
leave
ret
Function at 0x4038b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 5
mov esi, ecx
push 0x67
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4038d1
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4038c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4038c9
mov edi, 0xffff
cmp word [eax + 2], di
jne 0x4038c9
lea ecx, [eax + 0x1a]
movzx eax, word [ecx]
test ax, ax
jne 0x403903
add ecx, 2
jmp 0x40391b
cmp ax, di
jne 0x403910
add ecx, 4
jmp 0x40391b
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403910
movzx eax, word [ecx]
test ax, ax
jne 0x403928
add ecx, 2
jmp 0x40393d
cmp ax, di
jne 0x403932
add ecx, 4
jmp 0x40393d
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403932
cmp word [ecx], 0
je 0x40394c
add ecx, 2
cmp word [ecx], 0
jne 0x403943
add ecx, 8
cmp word [ecx], 0
je 0x40395e
add ecx, 2
cmp word [ecx], 0
jne 0x403955
add ecx, 2
mov eax, ecx
cdq
mov esi, eax
mov dword [ebp - 4], edx
and eax, 3
xor edx, edx
ja 0x403974
test eax, eax
je 0x403980
mov eax, esi
mov ecx, esi
and eax, 3
sub ecx, eax
add ecx, 4
cmp dword [ecx + 0x14], 0x3ff
jne 0x4038c9
movzx eax, word [ecx + 0x18]
add ecx, 0x18
test ax, ax
jne 0x40399e
add ecx, 2
jmp 0x4039bb
cmp ax, di
jne 0x4039b0
add ecx, 4
jmp 0x4039bb
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4039b0
mov edx, dword [ebp + 8]
xor esi, esi
sub ecx, edx
movzx eax, word [ecx + edx]
mov word [edx], ax
test ax, ax
je 0x4039da
inc esi
add edx, 2
cmp esi, 0x400
jb 0x4039c2
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403b10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x148]
push eax
push str.X:Sources
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindFirstFileA_failed__u
call fcn.004044f0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ebx, [ebx]
test byte [ebp - 0x148], 0x10
je 0x403bb3
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b82
sub eax, edx
cmp eax, 5
jne 0x403bb3
lea eax, [ebp - 0x11c]
push eax
push str.X:Sources_sw32uires.dll.mui
call fcn.00404bf0
add esp, 8
test eax, eax
je 0x403bb3
lea ecx, [ebp - 0x11c]
call fcn.004039f0
lea eax, [ebp - 0x148]
push eax
push esi
call edi
test eax, eax
jne 0x403b70
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x403cc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x130]
xor bh, bh
push eax
mov bl, 0x41
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [0x425948]
mov dword [ebp - 0x144], eax
mov eax, dword [0x42594c]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x140], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
push str.Find_Windows:_Logical_Drives:_0x_x
mov dword [ebp - 0x134], eax
call fcn.004044f0
mov eax, dword [ebp - 0x134]
add esp, 8
test eax, eax
je 0x403e9a
test bh, bh
jne 0x403e9a
test al, 1
je 0x403e88
cmp bl, 0x58
je 0x403e88
movsx eax, bl
push eax
push str._C:_WINDOWS.BTSourcesPanther_setupact.log
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040b3ad
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403e67
lea eax, [ebp - 0x110]
push eax
push str._s_Exist
call fcn.004044f0
add esp, 8
lea eax, [ebp - 0x120]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x403e5e
mov eax, dword [ebp - 0x11c]
mov edi, dword [ebp - 0x120]
push eax
push edi
push dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x110]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push dword [ebp - 0x144]
push eax
push str.__s__llu__llu__llu
call fcn.004044f0
mov eax, dword [ebp - 0x148]
add esp, 0x20
cmp eax, dword [ebp - 0x13c]
jb 0x403e5e
ja 0x403e37
cmp edi, dword [ebp - 0x144]
jbe 0x403e5e
cmp eax, dword [ebp - 0x140]
ja 0x403e5e
jb 0x403e49
cmp edi, dword [ebp - 0x138]
jae 0x403e5e
push dword [ebp - 0x14c]
push str.Detect_Windows11_install_drive:__C_
call fcn.004044f0
add esp, 8
mov bh, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x110]
push eax
push str._s_NOT_Exist__u
call fcn.004044f0
add esp, 0xc
mov eax, dword [ebp - 0x134]
shr eax, 1
inc bl
mov dword [ebp - 0x134], eax
test eax, eax
jne 0x403d51
mov ecx, dword [ebp - 4]
mov al, bh
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x404260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.SetupMonNroStart_...
call fcn.004044f0
add esp, 4
call fcn.00403b10
cmp dword [0x425098], 0
jne 0x4042d0
push str.Prompt_not_found__add_default
call fcn.004044f0
add esp, 4
push 0x804
call fcn.0040b401
add esp, 4
mov dword [0x425098], eax
test eax, eax
je 0x4042d0
push str.Windows_needs_to_restart_to_continue
push 0x400
push eax
call fcn.0040b493
mov eax, dword [0x425098]
add esp, 0xc
mov dword [eax + 0x800], 0
push str.Wait_for_setup_finish...
call fcn.004044f0
add esp, 4
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x425948
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push 0
push 0
push 0
push 0x4041b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret

Function at 0x404420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x3ff
lea eax, [ebp - 0x40b]
mov byte [ebp - 0x40c], 0
push 0
push eax
call fcn.004126f0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40c]
push 0x400
push 0x400
push eax
call fcn.0040d2c2
add esp, 0x14
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 0x428], 1
xor eax, eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x40c]
push eax
push str.Process_Run:___s_
call fcn.004044f0
add esp, 8
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x454]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x4044f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov dword [ebp - 0x420], 0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x40e]
push esi
push eax
movzx eax, word [ebp - 0x410]
push eax
movzx eax, word [ebp - 0x412]
push eax
movzx eax, word [ebp - 0x414]
push eax
movzx eax, word [ebp - 0x416]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
push str.__4d__02d__02d__02d:_02d:_02d._03d____u_
lea eax, [ebp - 0x40c]
push 0x400
push eax
call fcn.0040b3ad
mov esi, eax
mov ecx, 0x400
lea eax, [ebp + 0xc]
sub ecx, esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x40c]
push ecx
push ecx
add eax, esi
push eax
call fcn.0040d2c2
add esi, eax
add esp, 0x40
mov eax, dword [0x42509c]
test eax, eax
je 0x4045ae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
push 0x41f450
lea eax, [ebp - 0x420]
push str.X:Windows_system32_ventoy.log
push eax
call fcn.0040bb27
mov ecx, dword [ebp - 0x420]
add esp, 0xc
test ecx, ecx
je 0x404603
push ecx
push esi
lea eax, [ebp - 0x40c]
push 1
push eax
call fcn.0040c12a
push dword [ebp - 0x420]
push 1
push 1
push 0x41f474
call fcn.0040c12a
push dword [ebp - 0x420]
call fcn.0040c63b
add esp, 0x24
mov eax, dword [0x42509c]
test eax, eax
je 0x404617
test edi, edi
jne 0x404617
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xff
lea eax, [ebp - 0x107]
mov dword [ebp - 0x10c], 0
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.004126f0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404674
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
js 0x4046b3
mov cl, byte [esi + eax]
cmp cl, 0x5c
je 0x404696
cmp cl, 0x2f
je 0x404696
dec eax
jns 0x404684
jmp 0x4046b3
inc eax
add eax, esi
push eax
push 0x41f478
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b3ad
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push esi
push str.Load_NT_driver:__s__s
call fcn.004044f0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x404705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager_failed_Error:_u
call fcn.004044f0
lea eax, [edi + 1]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push str.OpenSCManager_OK
call fcn.004044f0
add esp, 4
lea eax, [ebp - 0x108]
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x4047ce
call esi
mov esi, eax
cmp esi, 0x3e5
je 0x404786
cmp esi, 0x431
je 0x404786
push esi
push str.CreateService_failed_v__u
call fcn.004044f0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push 0xf01ff
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x4047c8
push esi
push str.OpenService_failed__u
call fcn.004044f0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateService_imdisk_OK
call fcn.004044f0
add esp, 4
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4047f9
push str.StartService_OK
call fcn.004044f0
add esp, 4
jmp 0x404826
call esi
cmp eax, 0x420
jne 0x40480e
mov dword [ebp - 0x10c], 0
jmp 0x404826
push eax
push str.StartService_error___u
call fcn.004044f0
add esp, 8
mov dword [ebp - 0x10c], 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov esi, dword [ebp - 0x10c]
mov eax, str.success
test esi, esi
mov ecx, str.failed
cmove ecx, eax
push ecx
push str.Load_NT_driver__s
call fcn.004044f0
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
Function at 0x404870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], edx
push esi
push str.ReadWholeFile2Buf___s_
mov dword [ebp - 0x14], eax
mov ebx, 1
call fcn.004044f0
add esp, 8
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4048e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Could_not_open_the_file__s___error:_u
call fcn.004044f0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
push esi
call fcn.0040b401
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x404915
push esi
push str.Failed_to_alloc_memory_size:_u
call fcn.004044f0
add esp, 8
jmp 0x40496d
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404950
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 8]
push str.ReadFile_failed__dwSize:_u__error:_u
call fcn.004044f0
add esp, 0xc
jmp 0x40496d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push esi
push str.Success_read_file_size:_u
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
call fcn.004044f0
add esp, 8
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret

Function at 0x404a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
mov ebx, edx
push esi
push str.SaveBuffer2File___s__len:_u
call fcn.004044f0
add esp, 0xc
push 0
push 0
push 1
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_new_file__error:_u
call fcn.004044f0
add esp, 8
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2c4
mov esp, ebp
pop ebp
ret