joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dbe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x40dcda
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x40dcda
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00462d50
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.0040e905
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40dc57
shr eax, 4
not eax
and eax, 1
jmp 0x40dcdc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.0040dcea
test eax, eax
je 0x40dcda
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x40dcbc
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x40dcc2
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.0040456d
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x40dcdc
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c7e
leave
ret
Function at 0x40e0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x40e116
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00462d50
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40e116
push esi
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40e116
xor eax, eax
inc eax
jmp 0x40e118
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c7e
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 0x424], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e1be
test al, 0x10
je 0x40e1be
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x104
push edi
push ebx
lea eax, [ebp - 0x420]
push eax
call esi
push edi
push dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x420]
push eax
mov eax, 0x40e1d1
push eax
lea ecx, [ebp - 0x420]
push ecx
push eax
push 1
push ebx
mov dword [ebp - 0x10], 0x40a5ff
call fcn.0040d805
jmp 0x40e1c0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c7e
leave
ret 8
Function at 0x40e28f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.0046c7f0
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x40e46d
cmp eax, ebx
je 0x40e46d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40e2e7
mov dword [ebp - 0x2020], 1
jmp 0x40e46d
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, connect
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x40e457
cmp esi, 0xffffffff
je 0x40e457
cmp eax, ebx
je 0x40e457
cmp eax, 0xffffffff
je 0x40e457
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x40e457
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x40e457
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x40e457
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x40e457
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x40e441
cmp dword [ebp - 0x2018], ebx
je 0x40e44d
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e457
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x40e457
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40e423
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40e457
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e3cb
jmp 0x40e457
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.0040456d
lea eax, [ebp - 0x2010]
call fcn.0040456d
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c7e
leave
ret 4

Function at 0x40e5dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40e605
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x49a3a0]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x40e5e6
pop esi
not eax
ret 8
Function at 0x40e9b4
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push ebx
mov ebx, dword [ebp + 0x1a8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], ebx
test edi, edi
je 0x40ea8e
test ebx, ebx
je 0x40ea8e
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x40ea13
push ebx
push 0x482cd4
push esi
push edi
call fcn.0040fa44
xor eax, eax
inc eax
jmp 0x40ea90
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x80], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x80]
test ecx, eax
je 0x40ea88
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp + 0x194], ax
pop eax
mov word [ebp + 0x196], ax
xor eax, eax
push 0x206
lea edi, [ebp + 0x198]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
call fcn.00462d50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x40ea88
push dword [ebp - 0x78]
lea esi, [ebp - 0x74]
call fcn.0040fb41
test eax, eax
jne 0x40eaaa
inc ebx
cmp ebx, 0x1a
jl 0x40ea1e
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c7e
add ebp, 0x1a0
leave
ret 4
push dword [ebp - 0x7c]
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
jmp 0x40ea09

Function at 0x40edb9
Capabilities:
Write clipboard data

Disassembly:
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, eax
test ebx, ebx
je 0x40ee19
test edi, edi
je 0x40ee19
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ee18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40ee11
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40ee11
inc ebx
jmp 0x40ee18
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
pop ebx
ret
Function at 0x40ee23
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x498040]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.0040f629
push esi
test eax, eax
je 0x40eeb0
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00462d50
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x40eea7
cmp esi, 0xffffffff
je 0x40eea7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x40eea3
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0040f629
test eax, eax
je 0x40eea7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40ee89
lea eax, [esp + 4]
call fcn.0040456d
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.00460c7e
mov esp, ebp
pop ebp
ret 4

Function at 0x40eec5
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x479842
call fcn.004620f1
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40ef5a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40ef52
cmp esi, 0xffffffff
je 0x40ef52
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.00462d50
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40ef4e
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x40ef52
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ef37
lea eax, [ebp - 0x10]
call fcn.0040456d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.00460c7e
add ebp, 0x230
leave
ret 4

Function at 0x40ef7f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x40ef92
xor eax, eax
jmp 0x40efeb
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00462d50
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.0040d7cb
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40efe3
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040d7f8
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x40f1de
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x40f205
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c7e
leave
ret 4
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
je 0x40f227
cmp esi, 0xffffffff
jne 0x40f239
xor esi, esi
lea eax, [ebp - 0x210]
call fcn.0040456d
mov eax, esi
pop esi
jmp 0x40f1f7
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00462d50
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x40f227
push edi
lea ecx, [ebp - 0x20c]
call fcn.0040e9b4
xor esi, esi
inc esi
jmp 0x40f229

Function at 0x40f2da
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 8], eax
jne 0x40f2ed
xor eax, eax
inc eax
jmp 0x40f31f
push esi
push dword [ebp + 8]
xor esi, esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x40f314
cmp eax, 0xffffffff
je 0x40f314
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
lea eax, [ebp + 8]
call fcn.0040456d
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40f734
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
or dword [esi], 0xffffffff
push ebx
push dword [esp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f7c9
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40f7c9
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40f7c8
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x40f7c8
cmp eax, ebx
jl 0x40f79d
mov eax, 0x400000
jg 0x40f799
cmp ecx, eax
jbe 0x40f79d
mov edi, eax
jmp 0x40f79f
mov edi, ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40f7c8
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop ebx
ret 4
Function at 0x40f853
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
je 0x40f8ee
movzx eax, ax
push 0x481b34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40f8ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
jbe 0x40f8ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40f8ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x40f8ee
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x40f8e6
cmp eax, 0xffffffff
je 0x40f8e6
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f8da
cmp dword [ebp - 4], ebx
jne 0x40f8da
inc esi
lea eax, [ebp + 8]
call fcn.0040456d
mov eax, esi
jmp 0x40f8f0
lea eax, [ebp + 8]
call fcn.0040456d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40fce9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x47ae8f
call fcn.004620f1
mov eax, dword [ebp + 0x80c]
mov ebx, dword [ebp + 0x810]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x814]
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ebx
mov word [esi + 4], ax
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x14], edi
cmp ebx, edi
je 0x40fdfb
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00462d50
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
push ebx
push dword [ebp - 0x20]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x18], edi
call ebx
cmp dword [ebp - 0x18], 1
je 0x40fd95
cmp dword [ebp - 0x18], 2
jne 0x40fdfb
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40fdfb
cmp eax, 0x800
jbe 0x40fdc9
add eax, 2
push eax
call fcn.00461535
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
push edi
push eax
mov dword [ebp - 0x14], eax
call fcn.00462d50
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
jmp 0x40fdd1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ebx, dword [ebp - 0x14]
mov eax, ebx
cmp ebx, edi
jne 0x40fde9
lea eax, [ebp]
push eax
push esi
call fcn.00403198
cmp ebx, edi
je 0x40fdfb
push ebx
call fcn.00461458
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00460c7e
add ebp, 0x804
leave
ret
Function at 0x40fe6e
Capabilities:
Check if file exists
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], 3
push edi
mov edi, eax
jbe 0x40fe8a
cmp dword [ebp + 0x10], esi
ja 0x40ff28
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ff28
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
cmp edi, esi
jne 0x40fed4
cmp ebx, esi
je 0x40ff28
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x482d7c
push ebx
call edi
test eax, eax
jne 0x40fec5
xor edi, edi
inc edi
jmp 0x40fed4
push 0x482d88
push ebx
call edi
test eax, eax
jne 0x40ff28
push 0x10
pop edi
push 0xf003f
push esi
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40ff20
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push 1
push dword [ebp + 0x10]
push edi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.0040fe4e
xor eax, eax
cmp dword [ebp - 8], esi
setne al
jmp 0x40ff2a
lea eax, [ebp - 0xc]
call fcn.0040fe4e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40ff31
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40ff90
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40ff88
push 0x10
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040fe20
cmp dword [ebp - 0xc], edi
je 0x40ff88
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40ff85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40ff88
xor edi, edi
inc edi
lea eax, [ebp - 0xc]
call fcn.0040fe4e
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x40fffc
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x41004a
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x410042
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040fe20
cmp dword [ebp - 0xc], edi
je 0x410042
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.0040fe4e
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x410052
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
je 0x4100b7
push 4
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4100af
push 4
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040fe20
cmp dword [ebp - 0xc], edi
je 0x4100af
push 6
mov dword [ebp - 0x28], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4100af
cmp dword [ebp - 0x24], 4
jne 0x4100af
inc ebx
lea eax, [ebp - 0xc]
call fcn.0040fe4e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4101db
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x498040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41028f
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00462d50
add esp, 0xc
lea esi, [ebp - 0x20c]
mov ecx, edi
call fcn.0040e905
mov ecx, esi
call fcn.004100c0
test eax, eax
je 0x41023c
xor eax, eax
inc eax
jmp 0x41028d
lea eax, [ebp - 0x20c]
push eax
push 0x482dac
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call fcn.0040ef7f
mov dword [ebp - 0x620], eax
cmp eax, ebx
je 0x41027b
cmp eax, 0xffffffff
je 0x41027b
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x620]
call fcn.0040456d
xor eax, eax
test bl, bl
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c7e
leave
ret
Function at 0x41b15c
Capabilities:
Delete file
Get file size

Disassembly:
push 0x2ac
mov eax, 0x47c134
call fcn.0046215a
xor edi, edi
push edi
push dword [0x49ca10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x41b1d9
push 0x2d
push edi
mov esi, 0x49ca14
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov word [eax], cx
inc dword [0x49cc1c]
push dword [0x49cc1c]
lea eax, [ebp - 0x90]
push str.__d.log
push 0x40
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [0x49ca10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x49ca10], 0xffffffff
xor eax, eax
push 0x206
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push edi
push eax
call fcn.00462d50
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
call fcn.0041b005
lea eax, [ebp - 0x2b0]
push eax
call fcn.00421e49
push edi
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0x41b0e8
push edi
lea eax, [ebp - 0x298]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2b8], edi
mov dword [ebp - 0x2b4], edi
call fcn.0040d805
mov eax, dword [ebp - 0x2a0]
sub eax, dword [ebp - 0x2a4]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 0x64
ja 0x41b264
cmp dword [ebp - 0x2b4], edi
ja 0x41b264
cmp dword [ebp - 0x2b8], 0x3200000
jbe 0x41b29f
cmp eax, 0x14
jbe 0x41b26e
push 0xa
pop ebx
jmp 0x41b275
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, edi
jle 0x41b29f
push edi
lea esi, [ebp - 0x2b0]
call fcn.004107a5
cmp dword [eax + 0x18], 8
jb 0x41b290
mov eax, dword [eax + 4]
jmp 0x41b293
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, ebx
jl 0x41b279
lea esi, [ebp - 0x2b0]
call fcn.00406efb
push dword [ebp - 0x2b0]
call fcn.00460cb7
pop ecx
call fcn.004621dd
ret
Function at 0x41b685
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x41b6c0
push dword [ebp + 0x10]
xor ecx, ecx
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.0041b590
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc