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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0x10
lea edi, [ebx + 4]
jb 0x40750a
mov eax, dword [edi]
jmp 0x40750c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407595
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x34], eax
lea ecx, [eax - 2]
cmp ecx, 0x13
ja case.0x407530.4
movzx ecx, byte [ecx + 0x4075bc]
jmp dword [ecx*4 + 0x4075b4]
xor al, al
jmp 0x407597
mov esi, dword [0x5030b4]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
push eax
call fcn.00430cb0
add esp, 8
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
jb 0x407560
mov edi, dword [edi]
mov esi, dword [esi]
mov ecx, eax
call fcn.0042e730
push eax
push dword [ebx + 0x34]
push edi
push str.Exists_of_file__s_failed:__d___s__n
push dword [ebp - 0x2c]
call dword [esi + 0x18]
mov eax, dword [ebp - 0x14]
add esp, 0x14
cmp eax, 0x10
jb case.0x407530.2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
xor al, al
jmp 0x407597
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464228
mov esp, ebp
pop ebp
ret

Function at 0x4077f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
xor eax, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x407840
push ebx
push esi
push ecx
call fcn.0048d98b
mov ecx, dword [ebp + 0xc]
add esp, 4
mov esi, dword [edi + 0x2c]
mov ebx, eax
test ecx, ecx
je 0x407824
cmp ebx, ecx
jae 0x407824
lea eax, [ebx + esi]
cmp eax, ecx
jbe 0x407824
mov esi, ecx
sub esi, ebx
mov ecx, dword [edi + 0x1c]
lea eax, [ebx + esi]
cmp eax, ecx
jbe 0x407832
mov esi, ecx
sub esi, ebx
test esi, esi
jne 0x40784a
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], esi
xor eax, eax
pop esi
pop ebx
test eax, eax
pop edi
setne al
pop ebp
ret 0xc
mov eax, dword [0x5030b4]
mov dword [ebp + 0xc], eax
mov eax, dword [edi]
test eax, eax
je 0x407865
push eax
call fcn.00490b45
add esp, 4
mov edx, eax
jmp 0x407868
or edx, 0xffffffff
mov ecx, dword [ebp + 0xc]
lea eax, [ebx + esi]
push eax
push ebx
push edx
mov ecx, dword [ecx]
push str.__d__reading___d__d__n
push 3
push dword [ebp + 0xc]
call dword [ecx + 0x14]
push dword [edi]
mov ebx, dword [ebp + 8]
push esi
push 1
push dword [ebx + 8]
call fcn.00491419
add esp, 0x28
mov dword [ebp + 8], eax
mov dword [ebx + 0xc], eax
test eax, eax
je 0x4078be
cmp byte [ebp + 0x10], 0
je 0x40783e
push eax
push dword [ebx + 8]
lea ecx, [edi + 0x3c]
call fcn.00436fd0
mov eax, dword [ebp + 8]
test eax, eax
pop esi
pop ebx
setne al
pop edi
pop ebp
ret 0xc
call fcn.00490f42
pop esi
pop ebx
mov eax, dword [eax]
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
test eax, eax
pop edi
setne al
pop ebp
ret 0xc
Function at 0x4078e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor al, al
mov dword [ebp - 4], eax
mov dword [ebx + 0x30], 1
call fcn.00407270
test al, al
je 0x407952
push esi
push edi
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.00407990
mov edi, dword [ebp + 8]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [0x5030b4]
mov eax, dword [edi + 0xc]
add eax, ecx
mov edx, dword [esi]
push eax
push ecx
push str.writing___d__d__n
push 3
push esi
call dword [edx + 0x14]
push dword [ebx]
push dword [edi + 0xc]
push 1
push dword [edi + 8]
call fcn.00490e71
mov ecx, dword [ebp - 4]
add esp, 0x24
cmp eax, dword [edi + 0xc]
mov edx, 1
movzx ecx, cl
cmove ecx, edx
pop edi
mov dword [ebp - 4], ecx
pop esi
jmp 0x407955
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
test eax, eax
je 0x40797b
push eax
call fcn.0048dbbc
mov eax, dword [ebp - 4]
add esp, 4
mov dword [ebx], 0
mov dword [ebx + 0x30], 0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4863
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
push ebx
call fcn.004089e0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x30]
push dword [ebx + 0xc]
push str.received__d_bytes_n
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, ebx
push 0x96
push eax
call fcn.004365e0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x5c]
mov esi, dword [ecx]
mov ecx, eax
call fcn.0042e730
push eax
push 0x4e3410
push dword [edi + 0x5c]
call dword [esi + 8]
mov byte [ebp - 4], 0
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40aa62
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
push str.FILE_TRANSFER
lea ecx, [ebp - 0xa0]
call fcn.0042f2c0
test al, al
je 0x40aa87
mov ecx, dword [edi + 0x144]
push ebx
call fcn.00418dc0
jmp 0x40ab47
mov eax, dword [edi + 0x30]
lea ecx, [ebp - 0xa0]
mov esi, dword [eax]
call fcn.0042e730
push eax
push str.unknown_module___s__n
push dword [edi + 0x30]
call dword [esi + 0x10]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x40]
push str.unknown_module
push eax
call fcn.0042f6e0
add esp, 0x18
mov esi, eax
mov byte [ebp - 4], 2
cmp byte [ebp - 0xdb], 0x72
jne 0x40ab2e
cmp byte [ebp - 0xde], 0x74
jne 0x40ab2e
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0xdb], 0x65
call fcn.00436270
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xe0]
call fcn.00424900
push 4
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe4], 0xffffffff
push eax
lea ecx, [ebp - 0x24]
call fcn.00436400
push esi
lea ecx, [ebp - 0x24]
call fcn.00436460
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0040b2e0
lea ecx, [ebp - 0x24]
call fcn.00436370
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x40ab47
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004046a0
push str.INITIALIZE
lea ecx, [ebp - 0x88]
call fcn.0042f2c0
test al, al
je 0x40ab62
mov esi, 3
jmp 0x40ab75
cmp byte [ebp - 0xda], 9
mov esi, 2
je 0x40ab75
mov esi, 1
lea ecx, [ebp - 0xe0]
call fcn.0040aba0
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 - 0x10]
xor ecx, ebp
call fcn.00464228
mov esp, ebp
pop ebp
ret 4
Function at 0x40b5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b49c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4faee4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x30]
lea ebx, [edi + 0x14c]
mov ecx, ebx
mov esi, dword [eax]
mov eax, dword [ebx]
call dword [eax + 8]
push eax
mov ecx, ebx
call fcn.0043cf90
mov eax, dword [eax + 0xc]
push eax
push str.sending__d__d_bytes_n
push dword [edi + 0x30]
call dword [esi + 0x18]
add esp, 0x10
lea ecx, [ebp - 0x24]
push 0
call fcn.00436270
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x10]
mov ecx, dword [edi + 0x144]
lea eax, [ebp - 0x24]
push eax
call fcn.00418e50
mov byte [ebp - 0xd], al
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.0040b2e0
test al, al
jne 0x40b658
cmp byte [ebp - 0xd], al
je 0x40b65f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea ecx, [ebp - 0x24]
call fcn.00436370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d480
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b69e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xd0]
mov esi, dword [eax]
call fcn.0042e730
push eax
push str.setting_attributes_to__s_n
push dword [ebx + 0xd0]
call dword [esi + 0x18]
add esp, 0xc
mov ecx, edi
push 0x80
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push dword [ebp - 0x2c]
mov ecx, edi
push 3
push 0
push 3
push 0x40000000
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41d562
test esi, esi
je 0x41d562
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
call fcn.004374a0
mov ecx, dword [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004374a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, 1
sete al
jmp 0x41d5b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00430cb0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0xd0]
mov esi, dword [ecx]
mov ecx, eax
call fcn.0042e730
push eax
push edi
push str.error:__d_____s_n
push dword [ebx + 0xd0]
call dword [esi + 0x18]
mov eax, dword [ebp - 0x14]
add esp, 0x10
cmp eax, 0x10
jb 0x41d5b5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464228
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41d5e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0xd0]
mov edi, dword [ebp + 8]
mov ecx, edi
mov esi, dword [eax]
call fcn.0042e730
push eax
push str.creating_zero_file__s_n
push dword [ebx + 0xd0]
call dword [esi + 0x18]
add esp, 0xc
mov byte [ebp - 0x29], 0
mov ecx, edi
push 0x80
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov ecx, edi
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x41d67c
test eax, eax
je 0x41d67c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x41d6d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00430cb0
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xd0]
mov esi, dword [eax]
call fcn.0042e730
push eax
push edi
push str.error:__d_____s_n
push dword [ebx + 0xd0]
call dword [esi + 0x18]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp ecx, 0x10
jb 0x41d6cf
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004046a0
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464228
mov esp, ebp
pop ebp
ret 4
Function at 0x4263c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x4faee4]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
push 0x4e2a60
push 0
call fcn.00492740
add esp, 8
mov dword [esp + 0x7c], 0xf
lea ecx, [esp + 0x68]
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
push 0x12
push str.service_helper.log
call fcn.00404290
lea ecx, [esp + 0x68]
call fcn.00426330
mov eax, dword [esp + 0x7c]
cmp eax, 0x10
jb 0x426431
inc eax
lea ecx, [esp + 0x68]
push eax
push dword [esp + 0x6c]
call fcn.004046a0
push 0
call fcn.00493380
add esp, 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
mov dword [esp + 0xc], edx
push eax
call fcn.004934be
add esp, 4
push eax
push 0x500838
call fcn.00428450
push eax
call fcn.00428960
mov eax, dword fs:[0x2c]
add esp, 0xc
mov ecx, dword [eax]
mov eax, dword [0x503140]
cmp eax, dword [ecx + 8]
jle 0x4264ae
push 0x503140
call fcn.00464757
add esp, 4
cmp dword [0x503140], 0xffffffff
jne 0x4264ae
call fcn.00420a50
push 0x4bb3a0
call fcn.0046451b
add esp, 4
push 0x503140
call fcn.00464718
add esp, 4
lea eax, [esp + 0x80]
mov ecx, 0x503148
push eax
call fcn.004076e0
push eax
lea ecx, [esp + 0x6c]
call fcn.0042e3d0
lea eax, [esp + 0x68]
mov ecx, 0x503118
push eax
call fcn.0042e460
mov eax, dword [esp + 0x7c]
cmp eax, 0x10
jb 0x4264f1
inc eax
lea ecx, [esp + 0x68]
push eax
push dword [esp + 0x6c]
call fcn.004046a0
mov eax, dword [esp + 0x94]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
cmp eax, 0x10
jb 0x426527
inc eax
lea ecx, [esp + 0x80]
push eax
push dword [esp + 0x84]
call fcn.004046a0
lea ecx, [esp + 0x10]
call fcn.00438140
lea eax, [esp + 0x80]
mov ecx, 0x503118
push eax
call fcn.0042eb50
push eax
lea ecx, [esp + 0x2c]
call fcn.0042e460
mov eax, dword [esp + 0x94]
cmp eax, 0x10
jb 0x42656d
inc eax
lea ecx, [esp + 0x80]
push eax
push dword [esp + 0x84]
call fcn.004046a0
lea eax, [esp + 0x80]
mov ecx, 0x503148
push eax
call fcn.00426190
push eax
lea ecx, [esp + 0x44]
call fcn.0042e460
mov eax, dword [esp + 0x94]
cmp eax, 0x10
jb 0x4265aa
inc eax
lea ecx, [esp + 0x80]
push eax
push dword [esp + 0x84]
call fcn.004046a0
push 0x90
lea eax, [esp + 0xa0]
mov byte [esp + 0x64], 1
push 0
push eax
mov dword [esp + 0xa4], 0x94
call fcn.00484970
add esp, 0xc
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x5c]
mov ecx, 0x4261f0
cmp dword [esp + 0x9c], 5
cmovb eax, ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x10]
push eax
call fcn.00438580
mov edi, dword [0x503148]
add esp, 4
call fcn.00493115
mov esi, eax
call fcn.0049310f
push dword [esi]
mov ecx, 0x503148
push dword [eax]
call dword [edi + 0x30]
push str._________________
push 0x500838
mov esi, eax
call fcn.00428450
push eax
call fcn.00428960
add esp, 0xc
push eax
call fcn.00428960
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00438240
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00464228
mov esp, ebp
pop ebp
ret 0x10
Function at 0x429d30
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x429dbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x28]
mov edx, esi
call fcn.0042aa30
push eax
push str.failed_to_open_service_control_manager._error:
push 0x500960
mov dword [ebp - 4], ebx
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x429dbb
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov eax, esi
jmp 0x429e34
push 0x10000
mov ecx, esi
call fcn.00403e00
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x429e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x28]
mov edx, edi
call fcn.0042aa30
push eax
push str.failed_to_open_service._error:
push 0x500960
mov dword [ebp - 4], 1
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x429e29
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00464228
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x429eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [ebp - 0x40]
mov edx, edi
call fcn.0042aa30
push eax
push str.failed_to_open_service._error:
push 0x500960
mov dword [ebp - 4], 2
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x429eab
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004046a0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x429e2f
Function at 0x42a810
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8020
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4faee4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], edx
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 0x54], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
test esi, esi
je 0x42a9a1
mov ebx, dword [ebp - 0x4c]
nop
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x28]
call fcn.0042b370
push 0x4e5aac
push eax
push 0x4e5ab0
mov dword [ebp - 4], 1
push dword [edi + 4]
push str.service_state:__
push 0x500838
call fcn.00428450
add esp, 8
mov ecx, eax
call fcn.00426690
push eax
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
add esp, 8
push eax
call fcn.00428450
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42a8e0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [edi + 4], eax
je 0x42a9ef
cmp dword [ebp + 0xc], 0xffffffff
je 0x42a913
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x54], eax
jb 0x42aa0d
cmp dword [ebp - 0x44], 0
mov eax, dword [edi + 4]
je 0x42a92b
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
jmp 0x42a93f
cmp dword [ebp - 0x48], eax
je 0x42a938
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x48], eax
jmp 0x42a93f
cmp dword [edi + 0x14], ebx
cmova ebx, dword [edi + 0x14]
mov esi, dword [edi + 0x18]
mov eax, 0x3e8
cmp esi, 0x3e8
push str._ms_n
cmovb esi, eax
mov eax, 0x2710
cmp esi, 0x2710
cmova esi, eax
push esi
push str.waiting
push 0x500838
call fcn.00428450
add esp, 8
mov ecx, eax
call fcn.00426690
push eax
call fcn.00428450
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
test esi, esi
jne 0x42a870
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0042aa30
push eax
push str.failed_to_query_service_status._error:
push 0x500960
mov dword [ebp - 4], 0
call fcn.00428450
add esp, 8
push eax
call fcn.004286f0
push eax
call fcn.00428960
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x42a9ef
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004046a0
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 - 0x10]
xor ecx, ebp
call fcn.00464228
mov esp, ebp
pop ebp
ret
push str.set_timeout_n
push 0x500838
call fcn.00428450
add esp, 8
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42a9f1
Function at 0x42cad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3f46
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4faee4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00464239
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00462663
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430480
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b848b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.0042e3a0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0042eac0
dec eax
lea ecx, [ebp - 0x40]
push eax
call fcn.0042f220
mov al, byte [eax]
cmp al, 0x5c
je 0x4304d9
cmp al, 0x2f
je 0x4304d9
push 0x4e40c8
lea ecx, [ebp - 0x40]
call fcn.0042f4c0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e3a0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push 0x4e2a60
mov byte [ebp - 4], 1
call fcn.0042f380
lea ecx, [ebp - 0x28]
test al, al
je 0x430508
push ebx
call fcn.0042f4a0
jmp 0x430512
push 0x4bc500
call fcn.0042f4c0
push edi
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042e720
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov bl, 1
mov byte [ebp - 0xe], bl
cmp edi, 0xffffffff
je 0x430646
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, 0x4e3a9c
lea eax, [ebp - 0x16c]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x430570
test dl, dl
je 0x43056c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x430570
add eax, 2
add ecx, 2
test dl, dl
jne 0x430550
xor eax, eax
jmp 0x430575
sbb eax, eax
or eax, 1
test eax, eax
je 0x43062c
mov ecx, 0x4bc504
lea eax, [ebp - 0x16c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4305a8
test dl, dl
je 0x4305a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4305a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x430588
xor eax, eax
jmp 0x4305ad
sbb eax, eax
or eax, 1
test eax, eax
je 0x43062c
test byte [ebp - 0x198], 0x10
je 0x43060c
test si, si
je 0x43060c
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042f670
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push eax
call fcn.00430480
add esp, 0x20
test al, al
je 0x43069b
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x43060c
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004046a0
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push eax
push ebx
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [ebp + 0x10]
add esp, 0x10
cmp byte [ebp - 0xd], 0
jne 0x4306a7
lea eax, [ebp - 0x198]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x430540
mov bl, byte [ebp - 0xe]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x14]
pop edi
cmp eax, 0x10
jb 0x430663
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004046a0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x43068a
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004046a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00403230
jmp 0x430645
xor bl, bl
jmp 0x430645