joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494028
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404fe8
mov eax, dword [ebp - 8]
call fcn.00404fe8
xor eax, eax
push ebp
push 0x4941c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a114
test al, al
jne 0x49407a
mov bl, 1
jmp 0x4941ad
mov eax, dword [ebp - 8]
call fcn.0040a124
test al, al
jne 0x49408e
mov eax, dword [ebp - 8]
call fcn.0040a148
push dword [ebp - 4]
call fcn.0040c0ec
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x14]
mov eax, 0x4941e0
call fcn.0040cd94
push dword [ebp - 0x14]
push 0x4941fc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404eb8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a39c
mov ebx, eax
test bl, bl
je 0x494177
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0040ec8c
push dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0040a5a4
push dword [ebp - 0x1c]
call fcn.0040c0ec
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x20]
mov eax, 0x4941e0
call fcn.0040cd94
push dword [ebp - 0x20]
push 0x4941fc
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404eb8
mov eax, dword [ebp - 0x10]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404ff8
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4941ad
push 2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x38]
push eax
call fcn.00461fb8
mov edx, 0x49420c
pop ecx
call fcn.00462308
jmp 0x4941ad
push 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x38]
push eax
call fcn.00461fb8
mov edx, 0x494244
pop ecx
call fcn.00462308
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4941cf
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00404b4c
ret
Function at 0x4947b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4949b2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00461fb8
mov edx, 0x4949c8
call fcn.00462024
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0040ec8c
mov dl, 1
mov eax, dword [0x417a64]
call fcn.00403d64
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x494983
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49491b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, 0x4949f4
mov edx, dword [ebp - 8]
call fcn.0045efe8
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x494911
inc ebx
xor esi, esi
lea ecx, [ebp - 0x10]
mov edx, esi
mov eax, dword [ebp - 8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov al, byte [0x4949f8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040f50c
mov eax, dword [ebp - 0x14]
call fcn.0040a114
test al, al
je 0x4948dd
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x494909
push 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00461fb8
mov edx, 0x494a04
pop ecx
call fcn.00462308
jmp 0x494909
lea ecx, [ebp - 0x30]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0040a448
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
call fcn.00404bc0
mov eax, dword [ebp - 0x14]
call fcn.0040a114
test al, al
je 0x494909
mov eax, dword [ebp - 0x14]
call fcn.0040a384
inc esi
dec ebx
jne 0x494854
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49495e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49498a
lea eax, [ebp - 8]
call fcn.0040fc50
call fcn.00461fb8
mov edx, 0x494a8c
call fcn.00462024
ret
Function at 0x495550
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp + 0x10]
xor edx, edx
push ebp
push 0x4956fc
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [eax], 0
jne 0x495631
push 0x495714
push esi
push 0x495730
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404eb8
mov eax, dword [ebp - 0x10]
push eax
call fcn.00461fb8
pop edx
call fcn.00462024
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0xc]
call fcn.0040ece0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x495754
call fcn.00404e44
mov eax, dword [ebp - 0xc]
call fcn.0045ed1c
mov eax, dword [ebp - 0xc]
call fcn.0040a148
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, 0x49577c
mov eax, dword [ebp - 0xc]
call fcn.004927a4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00404bc0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.004928dc
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4956e1
cmp dword [eax], 0
jle 0x4956d5
dec dword [eax]
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov byte [eax], 1
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
call fcn.0040ece0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov ecx, 0x49578c
call fcn.00404e44
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.00494028
push 0
mov eax, esi
call fcn.00404ff8
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4956a0
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4956e1
push 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0xb
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x34]
push eax
call fcn.00461fb8
mov edx, 0x4957a4
pop ecx
call fcn.00462308
jmp 0x4956e1
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
mov byte [eax], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495703
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404b4c
ret
Function at 0x49592c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4959ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.00405188
push 0x104
mov eax, dword [ebx]
call fcn.00404ff8
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, eax
mov eax, ebx
call fcn.00405188
lea edx, [ebp - 4]
mov eax, dword [ebx]
call fcn.0040a510
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404b7c
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.0040ec8c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4959b5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b4c
ret

Function at 0x4965bc
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4966ef
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.0045dcfc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x496708
call fcn.00404e44
mov eax, dword [ebp - 4]
call fcn.0040a114
test al, al
je 0x49669e
lea eax, [ebp - 8]
call fcn.0045f508
mov eax, dword [ebp - 8]
call fcn.0040a124
test al, al
je 0x49663c
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0045ed8c
mov eax, dword [ebp - 8]
call fcn.00404ff8
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [ebp - 8]
call fcn.0040a148
push 0x496720
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00484a34
mov ebx, eax
test bl, bl
jne 0x496691
push 2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
call fcn.00461fb8
mov edx, 0x49672c
pop ecx
call fcn.00462308
lea eax, [esi + 0x10]
mov edx, dword [ebp - 8]
call fcn.00404b7c
jmp 0x4966c7
lea ecx, [ebp - 0x2c]
mov eax, 0x496708
xor edx, edx
call fcn.0040a448
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
call fcn.0045dcfc
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x10]
pop ecx
call fcn.00404e44
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4966f6
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00404b4c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b4c
ret
Function at 0x496e2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x496e34
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x496ff1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0045dd5c
lea eax, [ebp - 0x14]
call fcn.0045e960
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x497008
call fcn.00404e44
mov eax, dword [ebp - 0xc]
call fcn.0040a114
test al, al
je 0x496fd6
mov eax, dword [ebp - 8]
call fcn.0040a114
test al, al
je 0x496fd6
xor eax, eax
push ebp
push 0x496f9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x20]
mov edx, 0x497020
call fcn.00404f44
jne 0x496f49
lea eax, [ebp - 0x18]
call fcn.0045e960
lea eax, [ebp - 0x18]
mov edx, 0x49702c
call fcn.00404e00
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.0040a4dc
mov eax, dword [ebp - 0x10]
call fcn.0040a124
test al, al
je 0x496ee4
mov eax, dword [ebp - 0x10]
call fcn.0040a148
push 0x497044
lea eax, [ebp - 4]
push eax
mov ecx, 0x49705c
mov edx, 0x497068
mov eax, dword [ebp - 0xc]
call fcn.0045dfcc
call fcn.004958f8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00495ae0
mov eax, ebx
call fcn.00497638
mov eax, ebx
call fcn.004979e4
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.00404ff8
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x497020
mov ecx, 0x49707c
mov edx, 0x497094
mov eax, dword [ebp - 0xc]
call fcn.0045e188
jmp 0x496f94
mov eax, dword [ebx + 0x20]
mov edx, 0x4970a4
call fcn.00404f44
jne 0x496f94
call fcn.004958f8
mov edx, dword [ebp - 8]
call fcn.00495b38
push 0x4970b0
lea eax, [ebp - 0x1c]
call fcn.0045e960
lea eax, [ebp - 0x1c]
mov edx, 0x497008
call fcn.00404e00
mov eax, dword [ebp - 0x1c]
push eax
push 0x497094
mov ecx, 0x49707c
pop edx
pop eax
call fcn.0045e188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496fd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496ff8
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404b4c
ret
Function at 0x49747c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
call fcn.00404fe8
xor eax, eax
push ebp
push 0x4975ce
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49754b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045dfcc
cmp dword [ebp - 0x10], 0
jne 0x4974e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4975ab
cmp byte [ebp + 8], 0
je 0x497503
lea ecx, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004973fc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404bc0
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
call fcn.0045dde4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00404bc0
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404ff8
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045e188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4975ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4975d5
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b4c
lea eax, [ebp + 0xc]
call fcn.00404b28
ret
Function at 0x497f34
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x497f3c
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4980e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040a5a4
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040a4dc
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 8]
call fcn.0040ec8c
lea eax, [ebp - 0x28]
call fcn.0045f268
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040ec8c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, 0x4980fc
call fcn.00404e44
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.004093bc
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.004093bc
mov edx, dword [ebp - 0x30]
pop eax
call fcn.00404f44
je 0x4980ca
mov eax, dword [ebp - 0xc]
call fcn.0040a124
test al, al
jne 0x497fd5
mov eax, dword [ebp - 0xc]
call fcn.0040a148
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00404e44
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404ff8
mov esi, eax
push esi
mov eax, ebx
call fcn.00404ff8
mov edi, eax
push edi
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4980ca
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x1c]
mov ecx, 0x498128
mov edx, dword [ebp - 0xc]
call fcn.00404e44
mov eax, dword [ebp - 0x1c]
call fcn.0040a124
test al, al
jne 0x498036
mov eax, dword [ebp - 0x1c]
call fcn.0040a148
push dword [ebp - 0x10]
call fcn.0040c0ec
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x498140
call fcn.0040cd94
push dword [ebp - 0x34]
push 0x49815c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404eb8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0040a39c
test al, al
je 0x4980c1
push dword [ebp - 0x1c]
push dword [ebp - 4]
call fcn.0040c0ec
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, 0x498140
call fcn.0040cd94
push dword [ebp - 0x38]
push 0x49815c
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404eb8
mov eax, dword [ebp - 0x18]
call fcn.00404ff8
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404ff8
push eax
call sub.kernel32.dll_MoveFileA
push 0
push esi
push edi
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4980ec
lea eax, [ebp - 0x38]
mov edx, 0xe
call fcn.00404b4c
ret
Function at 0x10012c59
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10012cb4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10012c95
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10012cb2
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017169
mov dword [eax], 0xfffffff7
jmp 0x10012c8a
jmp 0x10012cd4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10012cd4
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esp, ebp
pop ebp
ret
Function at 0x10031087
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x100310ab
xor eax, eax
jmp 0x100311f7
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100310c9
xor eax, eax
jmp 0x100311f7
push 0x1912
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x664d
call fcn.10030d2e
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x100310f2
xor eax, eax
jmp 0x100311f7
push 0x7a5d
push 1
push 0x79b1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10030dd0
add esp, 0x20
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 1
call fcn.10030ead
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0x2b86
call fcn.10030f17
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x1003116d
push 1
lea eax, [ebp - 0x14]
push eax
push 0x22a0
push 0x3b95
lea eax, [ebp - 4]
push eax
call fcn.10030f8d
add esp, 0x14
push dword [ebp - 4]
call fcn.10030a36
pop ecx
test eax, eax
jne 0x1003117e
xor eax, eax
jmp 0x100311f7
push 0
push dword [ebp - 4]
call fcn.1002df0e
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100311df
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x100311a9
xor eax, eax
jmp 0x100311f7
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100311c2
xor eax, eax
jmp 0x100311f7
push 0xe7e
push 0x19a3
push 1
push 0x1e7e
lea eax, [ebp - 4]
push eax
call fcn.1003101f
add esp, 0x14
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100311f0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100311f4
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10047cf9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10047d54
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10047d35
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10047d52
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017169
mov dword [eax], 2
jmp 0x10047d2a
jmp 0x10047d5e
push 0
push 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esp, ebp
pop ebp
ret

Function at 0x10048935
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100489a2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.1004e212
jmp 0x100489bb
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100489bb
push 0x699
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x100489bf
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100489f6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10048a1b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x1408
push 0xa72
push 0x168
push 0
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esp, ebp
pop ebp
ret