joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050ce2
Capabilities:
Get graphical window text

Disassembly:
push 0x2c
mov eax, 0x100ad6a2
call fcn.100a4ea8
mov eax, edx
mov dword [ebp - 0x1c], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x14]
je 0x10050e48
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008df96
mov dword [ebp - 4], ebx
xor ecx, ecx
mov esi, dword [ebp - 0x10]
inc ecx
mov edx, 0x200
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10050d50
push edx
lea ecx, [ebp - 0x10]
call fcn.1008de52
mov esi, dword [ebp - 0x10]
mov edx, 0x200
push edx
lea ecx, [ebp - 0x10]
call fcn.1008df13
cmp dword [esi - 4], 1
mov eax, dword [esi - 8]
mov dword [ebp - 0x24], eax
jle 0x10050d76
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.1008dd7b
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.1008db88
push dword [edi + 0xc]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.10050782
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
lea ecx, [ebp - 0x38]
lea eax, [ebp - 0x10]
setne byte [ebp - 0x24]
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call fcn.10050989
mov byte [ebp - 4], 2
cmp dword [edi + 4], ebx
jle 0x10050e22
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x38]
push ebx
call fcn.1006b510
cmp edi, dword [eax]
mov edi, dword [ebp - 0x18]
je 0x10050de6
inc ebx
cmp ebx, dword [edi + 4]
jl 0x10050dcb
jmp 0x10050e22
push ebx
mov ecx, edi
call fcn.1006b510
mov edx, eax
mov ecx, dword [edx]
sub ecx, dword [ebp - 0x38]
jne 0x10050e16
cmp byte [edx + 0xc], cl
setne cl
xor eax, eax
cmp byte [ebp - 0x2c], al
setne al
sub ecx, eax
jne 0x10050e16
push dword [ebp - 0x30]
lea ecx, [edx + 8]
call fcn.1006f0b1
mov ecx, eax
test ecx, ecx
jns 0x10050e2d
push ebx
mov ecx, edi
call fcn.1006b568
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.1006b5be
lea ecx, [ebp - 0x38]
call fcn.10050e56
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.1008e3f5
lea ecx, [esi - 0x10]
call fcn.1008e3f5
xor eax, eax
inc eax
call fcn.100a4e71
ret

Function at 0x10052bb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 8], eax
xor eax, eax
push eax
push eax
push esi
push 0x10052b70
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x10053e42
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, ecx
push ebx
push esi
mov dword [ebp - 0xc], eax
mov esi, 0x80091007
add eax, 4
push eax
call fcn.1002d0a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10053f2e
push edi
push 0x100000
call fcn.10090eed
mov edi, eax
pop ecx
test edi, edi
je 0x10053f26
push 0
lea eax, [ebp - 4]
push eax
push 0x100000
jmp 0x10053ed0
cmp dword [ebp - 4], 0x100000
ja 0x10053f1f
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push edi
add eax, 4
push eax
call fcn.1002dc10
mov ecx, 0x100000
cmp dword [ebp - 4], ecx
jne 0x10053ee2
push 0
lea eax, [ebp - 4]
push eax
push ecx
and dword [ebp - 4], 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10053ea6
jmp 0x10053f1f
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
push eax
call fcn.10053f80
test al, al
je 0x10053f1f
cmp dword [ebp - 0x10], 0x20
jne 0x10053f1f
mov edx, dword [ebp - 8]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + ecx*4]
mov edx, dword [ebp - 8]
jne 0x10053f1f
inc ecx
cmp ecx, 8
jne 0x10053f09
xor esi, esi
push edi
call fcn.10090ef6
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10054ef3
Capabilities:
Check if file exists

Disassembly:
push 0x28
mov eax, 0x100adc4f
call fcn.100a4ea8
mov edi, ecx
cmp dword [edi + 4], 0
je 0x10055110
push 0
push 0x100c82a0
mov esi, 0x100c82c0
push esi
push 0
push dword [edi + 4]
call fcn.100a617b
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10054f32
mov al, 1
jmp 0x10055112
push 0
push 0x100c81c4
push esi
push 0
push dword [edi + 4]
call fcn.100a617b
add esp, 0x14
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10054f66
mov ecx, dword [eax]
push 0
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, dword [ebp - 0x10]
call esi
test al, al
je 0x10054f2b
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.100426e0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.1008e3f5
test esi, esi
je 0x100550db
push 0
push 0x100c81a0
push 0x100c82c0
push 0
push dword [edi + 4]
call fcn.100a617b
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10054f2b
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.100426e0
and dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x1005507c
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.1003ea33
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.100426fc
push dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x14]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x10]
push esi
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10054b3a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
lea ecx, [ebp - 0x34]
call fcn.10054b84
test eax, eax
jns 0x10055054
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x10010db0
push 7
push dword [ebp + 0x14]
push eax
call fcn.1002e198
mov ecx, dword [ebp - 0x20]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
jmp 0x100550ad
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0x10010e98
push 4
push dword [ebp + 0x14]
push eax
call fcn.1002e198
mov byte [ebp - 4], 0
add esp, 0x14
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
cmp byte [ebp + 0xc], 0
je 0x100550cb
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.100426e0
mov edx, dword [ebp + 0x14]
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1005511a
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
add ecx, 0xfffffff0
call fcn.1008e3f5
cmp ebx, 0xffffffff
jne 0x100550b2
mov eax, dword [ebp - 0x10]
jmp 0x10055108
mov esi, dword [edi + 4]
cmp dword [esi + 0xc], 0
je 0x100550c4
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
mov byte [edi + 8], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1008e3f5
jmp 0x10054f2b
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.100426e0
mov dword [ebp - 4], 7
push dword [eax]
lea eax, [ebp - 0x18]
push 0x10010ee0
push 4
push dword [ebp + 0x14]
push eax
call fcn.1002e198
mov eax, dword [ebp - 0x1c]
add esp, 0x14
lea ecx, [eax - 0x10]
call fcn.1008e3f5
xor al, al
call fcn.100a4e71
ret 0x10
Function at 0x1005570b
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x100a9a19
call fcn.100a4ea8
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
and dword [ebp - 0x18], 0
cmp byte [ebp + 0xc], 0
jne 0x10055739
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.1008e35d
add eax, 0x10
mov dword [edi], eax
jmp 0x100557a5
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008df96
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
and dword [ebp - 4], 0
push eax
call fcn.100426e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.1006e7cf
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005578e
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
jmp 0x10055790
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.1008e35d
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [edi], eax
call fcn.1008e3f5
mov eax, edi
call fcn.100a4e71
ret 0xc

Function at 0x1005580a
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x100add21
call fcn.100a4ea8
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.1006f372
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x10055868
lea ecx, [ebp - 0x14]
call fcn.10030691
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1006f1e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.1006e80f
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1005588f
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x10010f90
push ebx
push dword [esi + 4]
push eax
call fcn.1002e198
add esp, 0x14
jmp 0x100558de
push dword [ebp - 0x10]
mov ecx, esi
call fcn.100558fc
push 5
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
jmp 0x100558cd
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x100558b9
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
call fcn.100a4e71
ret 4
Function at 0x1005a256
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
call fcn.10068f10
mov ecx, esi
call fcn.10059f21
test eax, eax
jne 0x1005a311
call fcn.10059b56
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x1c], eax
push 0x10012ca8
call fcn.1006f372
mov ecx, esi
call fcn.1005a75e
push dword [ebp + 0xc]
mov ecx, esi
mov ebx, eax
push edi
call fcn.1005a6ca
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1005a2d5
cmp dword [ebp + 0x10], eax
je 0x1005a2d5
mov eax, dword [ebp + 0xc]
test byte [eax], 2
je 0x1005a2d9
push edi
mov ecx, esi
call fcn.1005a3b3
test al, al
je 0x1005a2d9
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.1005a6ca
mov edi, eax
jmp 0x1005a2dd
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x1005a2f5
push 0
push ebx
mov ecx, esi
call fcn.1005a7dc
push 0x10
push ebx
call fcn.100906f9
pop ecx
pop ecx
call fcn.10059ad2
mov esi, dword [eax + 4]
test esi, esi
je 0x1005a30f
push dword [esp + 0x14]
mov ecx, esi
call dword [0x100cf608]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1005ac52
Capabilities:
Query service status

Disassembly:
push 0x34
mov eax, 0x100ae63a
call fcn.100a4edc
mov edi, ecx
mov dword [ebp - 0x40], edi
xor ebx, ebx
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x38]
call fcn.1008df96
push 5
pop esi
push esi
push 0x1000af44
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x1005acf9
push 4
push 0x10013340
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edx, eax
test edx, edx
je 0x1005aceb
push 9
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1005acd1
cmp dword [ebp - 0x30], 1
je 0x1005ad26
test byte [ebp - 0x2c], 1
jne 0x1005ad26
mov bl, 1
jmp 0x1005ad26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push 0x10013358
push eax
call fcn.1008dbf3
mov edi, dword [ebp - 0x40]
jmp 0x1005ad0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100133a0
jmp 0x1005ad05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100133d8
lea eax, [ebp - 0x38]
push eax
call fcn.1008dbf3
mov eax, dword [edi]
add esp, 0xc
push dword [ebp - 0x38]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.1008e3f5
mov al, bl
call fcn.100a4e86
ret
Function at 0x1005ad39
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x100ae66f
call fcn.100a4ea8
mov dword [ebp - 0x18], edx
mov edi, ecx
cmp byte [0x100ced78], 0
jne 0x1005af1a
call fcn.1005ac52
test al, al
je 0x1005af1a
push ecx
mov ecx, esp
push 0x1002152c
call fcn.1006f372
mov ebx, dword [ebp + 8]
push 0xd
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100cf608]
mov ecx, ebx
call esi
push 0x3c
pop esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.1002e64e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.1002ea25
test al, al
jne 0x1005adb4
mov esi, 0x258
mov dword [ebp - 0x10], esi
xor ebx, ebx
inc ebx
push esi
push 0x10013418
push 2
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.1002e198
add esp, 0x14
and dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax]
mov esi, dword [eax]
mov ecx, esi
call dword [0x100cf608]
mov ecx, dword [ebp + 8]
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx + 4]
test al, al
jne 0x1005aef0
mov ecx, edi
call fcn.1005ac52
test al, al
je 0x1005aed6
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jl 0x1005add0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100cf608]
mov ecx, dword [ebp + 0xc]
call esi
push 2
pop esi
cmp eax, esi
je 0x1005ae7c
cmp eax, 5
mov eax, dword [edi]
je 0x1005ae5c
push 0x100136f8
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov esi, ebx
mov dword [ebp - 0x10], esi
jmp 0x1005adb7
push 0x10013620
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov byte [0x100ced78], bl
jmp 0x1005af0e
push 0x10013554
lea ecx, [ebp - 0x14]
call fcn.1006f372
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], bl
call fcn.1006cdf7
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov eax, dword [edi]
push 0x10013568
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100cf608]
mov ecx, ebx
call esi
xor eax, eax
jmp 0x1005af0c
mov eax, dword [edi]
push 0x10013524
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
jmp 0x1005af0a
mov eax, dword [edi]
push 0x100134c0
push 2
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
xor bl, bl
mov al, bl
mov bl, al
lea ecx, [ebp - 0x30]
call fcn.1002e9d0
mov al, bl
jmp 0x1005af1c
mov al, 1
call fcn.100a4e71
ret 0xc
Function at 0x1005b19d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1005b241
xor eax, eax
cmp dword [esi + 0x18], eax
jne 0x1005b241
push edi
push eax
push eax
push 1
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x18], eax
test eax, eax
jne 0x1005b1d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1005b23c
push ebx
push 0x10
call fcn.10090eed
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x1005b1eb
push 0xe
pop edi
jmp 0x1005b23b
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], esi
mov dword [ebx + 0xc], eax
cmp dword [esi + 0x14], edi
je 0x1005b20d
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push eax
push ebx
push 0x1005b250
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x1005b23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x18], 0
pop ebx
mov eax, edi
pop edi
jmp 0x1005b246
mov eax, 0x10dd
pop esi
pop ebp
ret 0xc

Function at 0x1005b4d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [edi + 0x1c]
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005b57c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x1005b562
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x18]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
test esi, esi
jne 0x1005b54e
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1005b57c
jmp 0x1005b553
cmp esi, 0xffffffff
jne 0x1005b55d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1005b562
mov esi, 0x3e3
test esi, esi
je 0x1005b57c
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [edi + 0x39], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b63c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0xc], edi
je 0x1005b65d
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordIsNull]
lea edi, [eax + 1]
push 0xc
xor ecx, ecx
xor ebx, ebx
mov word [ebp - 4], cx
pop eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x1005b6a5
push eax
pop esi
and dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1005b697
mov eax, dword [ebp - 0xc]
lea esi, [esi + eax*2]
add esi, 2
inc ebx
cmp ebx, edi
jb 0x1005b671
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
call fcn.1005b8ce
test eax, eax
jne 0x1005b6b9
push 0xe
pop eax
jmp 0x1005b7ae
mov eax, dword [esi + 0x30]
mov edx, dword [ebp - 0xc]
and dword [ebp - 8], 0
mov dword [eax], edx
mov ecx, dword [esi + 0x30]
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [eax + 8], edi
mov eax, dword [esi + 0x30]
lea ebx, [eax + 0xc]
add eax, edx
mov dword [ebp - 0x10], eax
test edi, edi
je 0x1005b746
mov esi, dword [ebp - 8]
cmp ebx, eax
jae 0x1005b743
xor eax, eax
mov word [ebx], ax
and dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
cmp eax, 0xea
jne 0x1005b729
mov eax, dword [ebp - 0x10]
sub eax, ebx
sar eax, 1
cmp dword [ebp - 8], eax
jge 0x1005b729
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.msi.dll_MsiRecordSetStreamA]
mov eax, dword [ebp - 8]
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [ebp - 8]
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x10]
add ebx, 2
inc esi
cmp esi, edi
jb 0x1005b6e6
mov esi, dword [ebp - 0x14]
push dword [esi + 0x2c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [esi + 0x1c]
push ebx
push edi
push dword [ebp - 0xc]
push dword [esi + 0x30]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1005b7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1005b797
push 1
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1005b7ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x1005b7ac
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1005b7b7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ebx, [esi + 0x1c]
push ebx
push edi
push 4
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005b834
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x1005b81f
push dword [esi + 0x3c]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
test edi, edi
jne 0x1005b823
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1005b834
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x1005b834
push dword [esi + 0x10]
mov byte [esi + 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x10], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1005ca60
Capabilities:
Modify service

Disassembly:
push 0x10
mov eax, 0x100ae8d1
call fcn.100a4ea8
mov ebx, ecx
and dword [ebp - 0x14], 0
call fcn.1008e1f3
push eax
lea ecx, [ebp - 0x10]
call fcn.1008df96
xor eax, eax
push 0xf003f
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1005caac
push 0x1000ff04
lea ecx, [ebp - 0x18]
call fcn.1006f372
mov byte [ebp - 4], 1
jmp 0x1005cb1a
push 2
push dword [ebx + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1005cad2
push 0x1001404c
lea ecx, [ebp - 0x18]
call fcn.1006f372
mov byte [ebp - 4], 2
jmp 0x1005cb1a
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1005cb09
mov edi, dword [ebx + 0xc]
push 0x10014158
push 4
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100cf608]
mov ecx, edi
call esi
jmp 0x1005cb32
push 0x10013fa0
lea ecx, [ebp - 0x18]
call fcn.1006f372
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x10]
call fcn.1006f1e0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
push 0x100141f8
lea ecx, [ebp - 0x18]
call fcn.1006f372
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1005c8f6
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1008e3f5
call fcn.100a4e71
ret