joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40af92
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x477843
call fcn.0045e88a
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x678], 0
mov dword [ebp - 0x674], eax
lea eax, [ebp - 0x6a0]
mov edi, ecx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.0040db1e
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x40b002
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.0040db54
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.00402d69
mov eax, ebx
jmp 0x40b12f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push dword [ebp - 0x674]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x40b101
push 0x47e2bc
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b0da
push 0x47d3d0
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b0da
cmp dword [ebp - 0x670], 0xffffffff
je 0x40b0da
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x6bc]
call fcn.00402cbc
mov eax, esi
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x6a0]
push eax
mov byte [ebp - 4], 2
call fcn.0040dbff
push 0
push 1
mov byte [ebp - 4], 1
call fcn.0040144b
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b04a
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x67c]
call fcn.0040db54
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.00402d69
mov eax, dword [ebp - 0x67c]
call fcn.0045e90d
ret
Function at 0x40b135
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x40b22f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x40b22f
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0045f510
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.0040bceb
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b1ac
shr eax, 4
not eax
and eax, 1
jmp 0x40b231
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.0040b23f
test eax, eax
je 0x40b22f
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 0x40b211
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x40b217
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.00404437
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x40b231
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
leave
ret
Function at 0x40b605
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x40b66b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0045f510
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40b66b
push esi
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40b66b
xor eax, eax
inc eax
jmp 0x40b66d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d55f
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x493040]
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 0x40b713
test al, 0x10
je 0x40b713
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, 0x40b726
push eax
lea ecx, [ebp - 0x420]
push ecx
push eax
push 1
push ebx
mov dword [ebp - 0x10], 0x407ade
call fcn.0040ad5a
jmp 0x40b715
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
leave
ret 8
Function at 0x40b7e4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.004690d0
mov eax, dword [0x493040]
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 0x40b9c2
cmp eax, ebx
je 0x40b9c2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40b83c
mov dword [ebp - 0x2020], 1
jmp 0x40b9c2
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 0x40b9ac
cmp esi, 0xffffffff
je 0x40b9ac
cmp eax, ebx
je 0x40b9ac
cmp eax, 0xffffffff
je 0x40b9ac
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 0x40b9ac
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x40b9ac
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x40b9ac
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x40b9ac
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x40b996
cmp dword [ebp - 0x2018], ebx
je 0x40b9a2
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 0x40b9ac
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x40b9ac
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40b978
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40b9ac
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 0x40b920
jmp 0x40b9ac
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.00404437
lea eax, [ebp - 0x2010]
call fcn.00404437
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
leave
ret 4

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

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x40bb5a
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 + 0x4953a0]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x40bb3b
pop esi
not eax
ret 8
Function at 0x40bd9a
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
push edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], eax
test ecx, ecx
je 0x40be47
test eax, eax
je 0x40be47
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 0x40be41
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.0045f510
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 0x40be41
push dword [ebp - 0x78]
lea esi, [ebp - 0x74]
call fcn.0040cdc3
test eax, eax
jne 0x40be63
inc ebx
cmp ebx, 0x1a
jl 0x40bdd7
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d55f
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]
call fcn.0040ccc6
xor eax, eax
inc eax
jmp 0x40be49

Function at 0x40c177
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x493040]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.0040c8ab
push esi
test eax, eax
je 0x40c204
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0045f510
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 0x40c1fb
cmp esi, 0xffffffff
je 0x40c1fb
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x40c1f7
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0040c8ab
test eax, eax
je 0x40c1fb
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40c1dd
lea eax, [esp + 4]
call fcn.00404437
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.0045d55f
mov esp, ebp
pop ebp
ret 4
Function at 0x40c219
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x476108
call fcn.0045e821
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40c2ae
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 0x40c2a6
cmp esi, 0xffffffff
je 0x40c2a6
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.0045f510
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40c2a2
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x40c2a6
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c28b
lea eax, [ebp - 0x10]
call fcn.00404437
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.0045d55f
add ebp, 0x230
leave
ret 4

Function at 0x40c2d3
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 0x40c2e6
xor eax, eax
jmp 0x40c33f
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.0045f510
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.0040ad20
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 0x40c337
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040ad4d
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x40c532
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x40c559
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d55f
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 0x40c57b
cmp esi, 0xffffffff
jne 0x40c58d
xor esi, esi
lea eax, [ebp - 0x210]
call fcn.00404437
mov eax, esi
pop esi
jmp 0x40c54b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0045f510
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x40c57b
push edi
lea ecx, [ebp - 0x20c]
call fcn.0040bd9a
xor esi, esi
inc esi
jmp 0x40c57d
Function at 0x40c653
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 8], eax
jne 0x40c666
xor eax, eax
inc eax
jmp 0x40c698
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 0x40c68d
cmp eax, 0xffffffff
je 0x40c68d
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
lea eax, [ebp + 8]
call fcn.00404437
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40c9b6
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 0x40ca4b
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 0x40ca4b
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40ca4a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x40ca4a
cmp eax, ebx
jl 0x40ca1f
mov eax, 0x400000
jg 0x40ca1b
cmp ecx, eax
jbe 0x40ca1f
mov edi, eax
jmp 0x40ca21
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 0x40ca4a
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 0x40cad5
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 0x40cb70
movzx eax, ax
push 0x47db2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
je 0x40cb70
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
jbe 0x40cb70
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40cb70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, esi
je 0x40cb70
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 0x40cb68
cmp eax, 0xffffffff
je 0x40cb68
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 0x40cb5c
cmp dword [ebp - 4], ebx
jne 0x40cb5c
inc esi
lea eax, [ebp + 8]
call fcn.00404437
mov eax, esi
jmp 0x40cb72
lea eax, [ebp + 8]
call fcn.00404437
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d0e9
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 0x40d105
cmp dword [ebp + 0x10], esi
ja 0x40d1a3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d1a3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ebx, eax
cmp edi, esi
jne 0x40d14f
cmp ebx, esi
je 0x40d1a3
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x47e3bc
push ebx
call edi
test eax, eax
jne 0x40d140
xor edi, edi
inc edi
jmp 0x40d14f
push str..exe
push ebx
call edi
test eax, eax
jne 0x40d1a3
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 0x40d19b
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.0040d0c9
xor eax, eax
cmp dword [ebp - 8], esi
setne al
jmp 0x40d1a5
lea eax, [ebp - 0xc]
call fcn.0040d0c9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d1ac
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 0x40d20b
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 0x40d203
push 0x10
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040d09b
cmp dword [ebp - 0xc], edi
je 0x40d203
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40d200
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x40d203
xor edi, edi
inc edi
lea eax, [ebp - 0xc]
call fcn.0040d0c9
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x40d277
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 0x40d2c5
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 0x40d2bd
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.0040d09b
cmp dword [ebp - 0xc], edi
je 0x40d2bd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.0040d0c9
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x40d3e8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x493040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d49c
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.0045f510
add esp, 0xc
lea esi, [ebp - 0x20c]
mov ecx, edi
call fcn.0040bceb
mov ecx, esi
call fcn.0040d2cd
test eax, eax
je 0x40d449
xor eax, eax
inc eax
jmp 0x40d49a
lea eax, [ebp - 0x20c]
push eax
push 0x47e3d8
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.0040c2d3
mov dword [ebp - 0x620], eax
cmp eax, ebx
je 0x40d488
cmp eax, 0xffffffff
je 0x40d488
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x620]
call fcn.00404437
xor eax, eax
test bl, bl
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d55f
leave
ret

Function at 0x417f2d
Capabilities:
Delete file
Get file size

Disassembly:
push 0x2ac
mov eax, 0x47866e
call fcn.0045e88a
xor edi, edi
push edi
push dword [0x497a18]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x417faa
push 0x2d
push edi
mov esi, 0x497a1c
push esi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov word [eax], cx
inc dword [0x497c24]
push dword [0x497c24]
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 [0x497a18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x497a18], 0xffffffff
xor eax, eax
push 0x206
mov word [ebp - 0x298], ax
lea eax, [ebp - 0x296]
push edi
push eax
call fcn.0045f510
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
call fcn.00417dd6
lea eax, [ebp - 0x2b0]
push eax
call fcn.0040da47
push edi
push edi
lea eax, [ebp - 0x2b8]
push eax
push 0x417eb9
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.0040ad5a
mov eax, dword [ebp - 0x2a0]
sub eax, dword [ebp - 0x2a4]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 0x64
ja 0x418035
cmp dword [ebp - 0x2b4], edi
ja 0x418035
cmp dword [ebp - 0x2b8], 0x3200000
jbe 0x418070
cmp eax, 0x14
jbe 0x41803f
push 0xa
pop ebx
jmp 0x418046
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, edi
jle 0x418070
push edi
lea esi, [ebp - 0x2b0]
call fcn.0040da92
cmp dword [eax + 0x18], 8
jb 0x418061
mov eax, dword [eax + 4]
jmp 0x418064
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, ebx
jl 0x41804a
lea esi, [ebp - 0x2b0]
call fcn.0040e195
push dword [ebp - 0x2b0]
call fcn.0045d598
pop ecx
call fcn.0045e90d
ret
Function at 0x4183f5
Capabilities:
Create thread

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