joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401088
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, al
cmp eax, 0xc
jg 0x4010bc
je 0x4010b8
sub eax, 4
je 0x4010b4
sub eax, 3
je 0x4010b0
dec eax
dec eax
je 0x4010ad
dec eax
jne 0x4010ad
push 3
pop eax
ret
xor eax, eax
ret
push 2
pop eax
ret
push 7
pop eax
ret
xor eax, eax
inc eax
ret
sub eax, 0x10
je 0x4010da
dec eax
je 0x4010d6
sub eax, 5
je 0x4010d2
sub eax, 3
jne 0x4010ad
push 6
pop eax
ret
push 5
pop eax
ret
push 8
pop eax
ret
push 4
pop eax
ret

Function at 0x40117e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, 0x400
push esi
call fcn.00430ca4
pop ecx
push esi
push eax
xor edi, edi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x14]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4011c7
xor al, al
jmp 0x4012c2
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], 0xfffffff8
push 2
push edi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
je 0x40120f
cmp eax, 0x52494401
je 0x401222
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffd800
jg 0x4011d4
jmp 0x4012ac
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
jmp 0x4012ac
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
push edi
push edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
cmp dword [ebp - 0xc], 0x52494402
mov dword [ebp - 8], edi
jne 0x4012ac
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
jle 0x4012ac
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push ebx
call esi
mov eax, dword [ebp + 8]
cmp dword [ebp - 0xc], eax
je 0x4012ac
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 8], edi
jl 0x40126c
push dword [ebp - 0x14]
call fcn.00430bc7
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fe2
Capabilities:
Identify system language via api

Disassembly:
call fcn.00401088
push dword [esp + 0xc]
mov dword [0x45bef8], eax
push dword [esp + 8]
call fcn.00401b3c
int3

Function at 0x402efc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
call fcn.00402eb3
cmp ax, 9
jne 0x402ff2
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x402ff2
push str.GetEnvironmentVariableW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x808], eax
test eax, eax
jne 0x402f5a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x402ff2
mov eax, dword [ebp + 0xc]
push edi
inc eax
push eax
push esi
call fcn.00403c89
push 0x800
mov edi, eax
call fcn.00430ca4
add esp, 0xc
push 0x400
mov esi, eax
push esi
push 0x44aaec
call dword [ebp - 0x808]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.00432990
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004332ff
lea eax, [ebp - 0x804]
push 0x44aae8
push eax
call fcn.004332ff
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.004332ff
push edi
call fcn.00430bc7
push esi
call fcn.00430bc7
add esp, 0x2c
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0043242d
leave
ret
Function at 0x403019
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a0]
sub esp, 0x820
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp + 0x79c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7a8]
mov dword [ebp - 0x6c], edi
call fcn.00402eb3
cmp ax, 9
jne 0x4031ff
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov dword [ebp - 0x74], eax
cmp eax, esi
jne 0x40306a
xor eax, eax
jmp 0x403202
push str.GetEnvironmentVariableW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp eax, esi
jne 0x403090
xor esi, esi
inc esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x403202
mov ebx, dword [ebp + 0x7ac]
lea eax, [ebx + 1]
push eax
push edi
call fcn.00403c89
push 0x800
mov dword [ebp - 0x68], eax
call fcn.00430ca4
add esp, 0xc
push 0x400
mov edi, eax
push edi
push 0x44aaec
call dword [ebp - 0x70]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
push 0x7fe
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push esi
push eax
call fcn.00432990
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.004332ff
lea eax, [ebp - 0x64]
push 0x44aae8
push eax
call fcn.004332ff
push dword [ebp - 0x68]
lea eax, [ebp - 0x64]
push eax
call fcn.004332ff
push dword [ebp - 0x68]
call fcn.00430bc7
push edi
call fcn.00430bc7
add esp, 0x2c
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x403080
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp - 0x6c]
call fcn.00403d80
add esp, 0xc
push esi
push esi
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, 0x4800
push edi
call fcn.00430ca4
xor ebx, ebx
pop ecx
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x78], esi
jbe 0x4031a2
push esi
lea eax, [ebp - 0x7c]
push eax
push edi
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x78]
add ebx, edi
cmp ebx, eax
jbe 0x403189
cdq
mov ecx, edi
idiv ecx
mov dword [ebp - 0x7c], edx
push esi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x68]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, dword [ebp - 0x78]
jb 0x403166
push dword [ebp - 0x68]
call fcn.00430bc7
pop ecx
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, word [ebp + 0x7ac]
mov word [0x45bf00], ax
mov eax, dword [ebp - 0x6c]
push 0x403003
mov dword [0x45bf04], eax
call fcn.00433573
mov dword [esp], str.SetEnvironmentVariableW
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x403080
lea ecx, [ebp - 0x64]
push ecx
push str.W64PATH
call eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x79c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043242d
add ebp, 0x7a0
leave
ret
Function at 0x40321a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.004333c0
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 5
pop ecx
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
mov esi, str._unknown_
lea edi, [ebp - 0x20c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00432990
add esp, 0xc
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x40337b
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40336f
lea ecx, [ebp - 0x218]
push ecx
push 0x1000
lea ecx, [ebp - 0x1218]
push ecx
call eax
test eax, eax
je 0x40336f
and dword [ebp - 0x210], 0
push ebx
mov ebx, dword [ebp - 0x218]
shr ebx, 2
test ebx, ebx
jbe 0x40336e
mov eax, dword [ebp - 0x210]
mov eax, dword [ebp + eax*4 - 0x1218]
test eax, eax
je 0x40335c
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40335c
push str.GetProcessImageFileNameW
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403355
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edi
call eax
lea eax, [ebp - 0x20c]
push str.w64.exe
push eax
call fcn.004333eb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403355
lea eax, [ebp - 0x20c]
push eax
call fcn.0043243c
pop ecx
lea ecx, [ebp - 0x20c]
sub esi, ecx
shr esi, 1
add esi, 8
cmp esi, eax
jne 0x403355
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], ebx
jb 0x4032bc
pop ebx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043242d
leave
ret

Function at 0x4033df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor edi, edi
cmp dword [0x45bf0c], edi
je 0x4033f8
or eax, 0xffffffff
jmp 0x40347c
push edi
push edi
push 2
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
mov dword [0x45bf0c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x403426
mov dword [0x45bf0c], 4
jmp 0x4033f0
push esi
xor ecx, ecx
mov word [ebp - 0x14], cx
mov word [ebp - 0x10], cx
xor esi, esi
inc esi
mov ecx, esi
push edi
mov word [ebp - 0x12], cx
lea ecx, [ebp - 8]
push ecx
push 0xe
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0xe], 0xe
mov dword [ebp - 0x18], 0xfeafbeba
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403464
cmp dword [ebp - 8], 0xe
je 0x403478
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x45bf0c], esi
or eax, 0xffffffff
jmp 0x40347b
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret
Function at 0x403514
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040349a
xor edi, edi
pop ecx
pop ecx
cmp dword [0x45bf0c], edi
je 0x40353a
xor eax, eax
jmp 0x4035ef
mov dword [0x45bf0c], edi
cmp word [ebp - 0x14], di
je 0x403533
movzx eax, word [ebp - 0x14]
imul eax, eax, 0xc
push esi
push eax
call fcn.00430ca4
mov esi, eax
pop ecx
mov dword [ebp - 4], esi
cmp esi, edi
jne 0x40356a
mov dword [0x45bf0c], 5
jmp 0x403597
mov eax, dword [ebp - 0xe]
mov ecx, dword [0x45bf08]
push edi
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40359b
push esi
call fcn.00430bc7
pop ecx
mov dword [0x45bf0c], 1
xor eax, eax
jmp 0x4035ee
push ebx
xor eax, eax
xor ebx, ebx
cmp ax, word [ebp - 0x14]
jae 0x4035dd
add esi, 4
push edi
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [esi - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4035f2
cmp dword [ebp - 8], 0xc
jne 0x4035f2
mov eax, dword [0x45bf08]
add dword [esi], eax
movzx eax, word [ebp - 0x14]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4035a9
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x4035eb
mov cx, word [ebp - 0x14]
mov word [eax], cx
mov eax, esi
pop ebx
pop esi
pop edi
leave
ret
push dword [ebp - 4]
call fcn.00430bc7
pop ecx
mov dword [0x45bf0c], 1
xor eax, eax
jmp 0x4035ed

Function at 0x4036a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [edi], ebx
push dword [ebp + 8]
call fcn.00403609
add esp, 0x10
cmp dword [0x45bf0c], ebx
je 0x4036d9
xor eax, eax
jmp 0x403752
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [0x45bf0c], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4036fe
mov dword [0x45bf0c], 1
jmp 0x4036d5
push esi
mov esi, dword [ebp - 8]
push esi
call fcn.00430ca4
pop ecx
mov dword [ebp + 0x14], eax
mov dword [edi], esi
cmp eax, ebx
jne 0x40371e
mov dword [0x45bf0c], 5
jmp 0x40374a
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403737
cmp dword [ebp - 4], esi
je 0x40374e
push dword [ebp + 0x14]
call fcn.00430bc7
pop ecx
mov dword [0x45bf0c], 1
xor eax, eax
jmp 0x403751
mov eax, dword [ebp + 0x14]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x403ef0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
mov dword [ebp - 0x20], ecx
stosw word es:[edi], ax
pop ebx
lea eax, [ebx + 0x41]
push eax
push str._c:_
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.004323ee
add esp, 0x10
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x403f56
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x574], 1
jne 0x403f63
cmp eax, 3
jne 0x403f63
mov ecx, dword [ebp - 0x1c]
mov al, bl
add al, 0x41
inc dword [ebp - 0x1c]
mov byte [esi + ecx], al
inc ebx
cmp ebx, 0x1b
jb 0x403f1f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043242d
leave
ret 4
Function at 0x4048ca
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push ebx
push esi
push edi
push str.KERNEL.MAP
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x18]
push 0x14
xor ebx, ebx
push eax
mov esi, ecx
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x16], 0x5c
mov byte [ebp - 0x15], bl
call fcn.00433af0
push 0x14
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403c54
add esp, 0x18
push ebx
push 6
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x44]
push eax
push 0x2713
push dword [0x45c054]
call fcn.00403d80
add esp, 0xc
push ebx
push ebx
push eax
push dword [0x45c054]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 0x4800
push eax
mov dword [ebp - 0x48], eax
call fcn.00430ca4
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
pop ecx
push ebx
push ebx
push 0x402
push dword [esi + 0x388]
mov dword [ebp - 0x50], eax
call edi
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
jle 0x4049e8
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
lea edx, [eax + ecx]
mov eax, dword [ebp - 0x44]
cmp edx, eax
jbe 0x404999
xor edx, edx
div ecx
mov dword [ebp - 0x48], edx
push ebx
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push dword [0x45c054]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x4c]
imul eax, eax, 0x64
cdq
idiv dword [ebp - 0x44]
lea ecx, [esi + 0x368]
push eax
call fcn.00403c0b
push ebx
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
jl 0x404982
push ebx
push 0x64
push 0x402
push dword [esi + 0x388]
call edi
push dword [ebp - 0x50]
call fcn.00430bc7
pop ecx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043242d
leave
ret 4
Function at 0x404a28
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
push esi
push str.SYSLOAD.SYS
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x18]
push 0x14
push eax
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x16], 0x5c
mov byte [ebp - 0x15], 0
call fcn.00433af0
add esp, 0xc
push 0x4000
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x404aad
push 0x14
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403c54
add esp, 0xc
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call esi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043242d
leave
ret 4

Function at 0x404e25
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x44b190
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 3
movsw word es:[edi], word [esi]
pop ebx
lea eax, [ebx + 0x40]
mov word [ebp - 0xc], ax
push 0x14
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jle 0x404e73
push dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00433b64
pop ecx
pop ecx
test eax, eax
je 0x404e95
inc ebx
cmp ebx, 0x1b
jl 0x404e46
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403ab7
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043242d
leave
ret
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00403ab7
mov al, bl
add al, 0x40
jmp 0x404e86
Function at 0x408575
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x45a90c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov byte [esi + 0xc], bl
cmp eax, dword [esi + 4]
jb 0x4085a7
push 0xfffffffffffffffe
pop eax
jmp 0x4086fe
inc eax
shl eax, 4
mov eax, dword [eax + esi]
add eax, 0x41
push eax
push str.._c:
lea eax, [ebp - 0x14]
push 7
push eax
call fcn.004323ee
add esp, 0x10
push ebx
push 0x28000004
push 3
push ebx
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x4085eb
push 0xfffffffffffffffd
jmp 0x4085a1
push eax
mov ecx, esi
call fcn.0040842e
test eax, eax
jne 0x408603
mov dword [ebp - 0x18], 0xfffffffc
jmp 0x4086f2
mov eax, dword [esi + 8]
push edi
shl eax, 4
add eax, esi
mov edi, dword [eax + 0x1c]
imul edi, dword [eax + 0x18]
push 4
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x408635
mov dword [ebp - 0x18], 0xfffffffb
jmp 0x4086dd
mov eax, dword [ebp + 0xc]
xor edx, edx
div edi
push ebx
push ebx
push ebx
push dword [ebp - 0x20]
mov dword [0x45c010], eax
mov dword [0x45c024], ebx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [esi + 0xc]
mov dword [ebp - 0x28], ebx
test al, al
jne 0x4086bb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jae 0x4086bb
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00433d80
add esp, 0xc
push ebx
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4086b4
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x28]
inc edx
push edx
mov ecx, esi
call fcn.004083f7
mov al, byte [esi + 0xc]
add dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], edx
test al, al
je 0x408666
jmp 0x4086bb
mov dword [ebp - 0x18], 0xfffffffa
mov al, byte [esi + 0xc]
test al, al
je 0x4086ce
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x4086ce
or dword [ebp - 0x18], 0xffffffff
push 0x8000
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [ebp - 0x20]
mov ecx, esi
call fcn.0040840e
push dword [ebp - 0x20]
mov ecx, esi
call fcn.0040844e
pop edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043242d
leave
ret 8
Function at 0x409d88
Capabilities:
Continue service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x409ea4
push 0xf01ff
push str.ImapiService
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x409dca
push 0xfffffffffffffffe
pop eax
jmp 0x409ea7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push str.ADVAPI32.DLL
mov dword [ebp - 8], 0x24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, edi
jne 0x409df2
push 0xfffffffffffffffd
jmp 0x409dc4
push str.QueryServiceStatusEx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp eax, edi
jne 0x409e10
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xfffffffffffffffc
jmp 0x409dc4
lea ecx, [ebp - 8]
push ecx
push edi
push edi
push edi
push dword [ebp - 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x409e3c
push 0xfffffffffffffffb
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x409ea7
push dword [ebp - 8]
call fcn.00420d53
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
push dword [ebp - 4]
call dword [ebp - 0x10]
test eax, eax
jne 0x409e5e
push 0xfffffffffffffffa
jmp 0x409e29
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x409e84
cmp eax, 3
je 0x409e84
add eax, 0xfffffffa
cmp eax, 1
ja 0x409e8f
lea eax, [ebp - 0x2c]
push eax
push 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x409e8f
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
call fcn.00420d5e
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a20d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x14]
test al, al
jne 0x40a224
xor eax, eax
jmp 0x40a2c3
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
imul ebx, edi
test ebx, ebx
je 0x40a289
push 0xffffffffffffffff
push dword [0x45c044]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 8]
add eax, dword [esi + 0x10]
push 0
push 0
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
lea edx, [ecx + ebx]
cmp edx, eax
jbe 0x40a266
sub eax, ecx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x45c044]
test eax, eax
jne 0x40a28d
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
jmp 0x40a2c1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov ebx, eax
imul eax, dword [ebp + 0xc]
add dword [esi + 0x10], eax
cmp ebx, edi
jae 0x40a2bf
mov ecx, dword [ebp + 8]
sub edi, ebx
imul edi, dword [ebp + 0xc]
push edi
add eax, ecx
push 0
push eax
call fcn.00432990
add esp, 0xc
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret 0xc