joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5466b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebp, ebp
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x5468f4
push ebx
cmp eax, 3
jb 0x54672b
mov ecx, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + esi + 0x1af72]
and eax, 0x7fff
shl edx, 5
xor eax, edx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebp, ebp
je 0x54676d
mov edx, dword [esi + 0x6af84]
sub edx, ebp
cmp edx, 0x7efa
ja 0x54676d
mov eax, dword [esi + 0x6af90]
mov ecx, dword [esi + 0x6afa0]
cmp ecx, eax
jbe 0x546755
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.00546360
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x54676d
mov edi, eax
cmp edi, 3
jb 0x546866
mov ecx, dword [esi + 0x6af84]
mov ebx, dword [esi + 0x6af88]
lea eax, [edi - 3]
sub ecx, ebx
push eax
push ecx
push esi
call fcn.00545a60
mov edx, dword [esi + 0x6af90]
mov ecx, dword [esi + 0x6af98]
add esp, 0xc
sub edx, edi
mov ebx, eax
cmp edi, ecx
mov dword [esi + 0x6af90], edx
mov eax, edx
ja 0x546814
cmp eax, 3
jb 0x546814
dec edi
mov ebp, dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af7c]
inc ebp
xor eax, eax
mov ecx, ebp
mov dword [esi + 0x6af84], ebp
and edx, 0x3ff
mov al, byte [esi + ecx + 0x1af72]
and ecx, 0x7fff
and eax, 0x7fff
shl edx, 5
xor eax, edx
dec edi
mov dword [esi + 0x6af7c], eax
mov ebp, dword [esi + eax*4 + 0x4af70]
mov dword [esi + ecx*4 + 0x2af70], ebp
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x5467b4
jmp 0x546890
mov edx, dword [esi + 0x6af84]
xor eax, eax
add edx, edi
push 0xaf6da4
mov dword [esi + 0x6af84], edx
push 1
mov al, byte [edx + esi + 0x1af70]
lea ecx, [edx + esi]
xor edx, edx
mov dword [esi + 0x6af7c], eax
mov dl, byte [ecx + 0x1af71]
and eax, 0x3ff
and edx, 0x7fff
push esi
shl eax, 5
xor edx, eax
xor edi, edi
mov dword [esi + 0x6af7c], edx
call fcn.00544a90
add esp, 0xc
jmp 0x546896
mov eax, dword [esi + 0x6af84]
xor ecx, ecx
mov cl, byte [eax + esi + 0x1af70]
push ecx
push 0
push esi
call fcn.00545a60
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
dec ecx
mov ebx, eax
mov dword [esi + 0x6af90], ecx
inc dword [esi + 0x6af84]
test ebx, ebx
je 0x5468d0
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x5468ad
lea ecx, [eax + esi + 0x1af70]
jmp 0x5468af
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00545820
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x5468e5
push esi
call fcn.00546560
add esp, 4
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x5466d4
pop ebx
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x546907
lea ecx, [eax + esi + 0x1af70]
jmp 0x546909
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00545820
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x5478d0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push esi
call dword [0x5e4238]
cmp eax, 1
je 0x5478ee
mov eax, 0x1000000
pop esi
add esp, 0x50
ret
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x5e4234]
test eax, eax
jne 0x547908
mov eax, 0x200
pop esi
add esp, 0x50
ret
mov eax, dword [esp + 0x20]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x54791c
mov ebp, 1
test al, 2
je 0x547923
or ebp, 2
test al, 4
je 0x54792a
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x547934
or ebp, 0x10
test al, 0x20
je 0x54793b
or ebp, 0x20
test ecx, ecx
je 0x547947
or ebp, 0x40000000
jmp 0x54794d
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x54795d
or ebp, 0x800000
push ebx
push 0
push esi
call dword [0x5e4388]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x547a0b
mov edi, dword [0x5e438c]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [0x5e43c4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x6c]
push 2
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push esi
call ebx
cmp word [esp + 0x64], 0x54ad
jne 0x547a0b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x547a0b
push 0
push 0
push eax
push esi
call edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x2c]
push 4
push ecx
push esi
call ebx
mov eax, dword [esp + 0x24]
cmp eax, 0x5a4d
je 0x547a05
cmp eax, 0x454e
je 0x547a05
cmp eax, 0x454c
je 0x547a05
cmp eax, 0x4550
jne 0x547a0b
or ebp, 0x400000
mov eax, dword [esp + 0x68]
pop ebx
test eax, eax
je 0x547a16
mov dword [eax], ebp
mov eax, dword [esp + 0x68]
test eax, eax
je 0x547a24
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov esi, dword [esp + 0x6c]
mov edi, dword [0x5e44c8]
test esi, esi
je 0x547a8e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call edi
lea edx, [esp + 0x18]
lea eax, [esp + 0x3c]
push edx
push eax
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x2c]
push ecx
push edx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.00547810
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.00547810
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov dword [esi + 4], eax
call fcn.00547810
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [esp + 0x70]
test esi, esi
je 0x547ad1
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call edi
lea edx, [esp + 0x64]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [0x5e422c]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x54ace0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x54aceb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x54adee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0xac5c24]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xac5c24]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xac5c24]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xac5c24]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xac5c24]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0xac5c24]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0xac5c24]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xac5c24]
xor eax, edx
inc ecx
dec edi
jne 0x54ad06
pop edi
test esi, esi
je 0x54ae10
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0xac5c24]
xor eax, edx
inc ecx
dec esi
jne 0x54adf2
pop esi
pop ebx
not eax
ret

Function at 0x54eaa8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df7f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005514f0
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], 0xac61e0
call fcn.005c4076
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.005c4076
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.00551110
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.00551110
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.005c4076
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.005c4076
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.00551110
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.00551110
mov dword [edi], 0xac61d8
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.005514f0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.005514f0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.005514f0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.005514f0
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.005514f0
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], 0xac6120
call fcn.0054edd0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x54ec90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5df90b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0xac6120
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.005516c0
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.005516c0
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.005516c0
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.005516c0
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.005516c0
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0xac61e8
call fcn.00551310
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0xac61e8
call fcn.00551310
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.005c409f
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.005c409f
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0xac61e8
call fcn.00551310
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xac61e8
call fcn.00551310
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.005c409f
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.005c409f
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005516c0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x56a250
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5e0d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005cd19f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0056a190
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.005cd0cd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x5e4820]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x56a317
cmp dword [esp + 0x40], 1
jne 0x56a315
cmp ecx, eax
jge 0x56a317
mov eax, ecx
cmp eax, 0x12c
jge 0x56a323
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0056a370
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x5e481c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.005cd211
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x595040
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x595050
mov esi, 1
push esi
call fcn.005b0947
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5950a2
call fcn.005b2fcf
mov edi, eax
call fcn.00597ba0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x595086
mov edx, dword [0xb068c0]
mov dword [0xb068bc], edx
test al, 0x18
je 0x595097
push esi
push 0x24
push 5
call fcn.005983f0
add esp, 0xc
test edi, edi
je 0x5950bd
push 1
call fcn.005b2caa
test byte [esp + 0x14], 0x20
je 0x5950bd
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x5961c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x5962b4
cmp byte [edx], 0
je 0x5962a7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.00596140
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.00596140
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005960b0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x596271
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.005960f0
fmul qword [0xacaab0]
push ecx
fstp qword [esp]
call fcn.005af298
fadd qword [0xacaaa8]
add esp, 8
call fcn.005af368
mov byte [ebx], al
inc ebx
dec edi
jne 0x596244
lea ecx, [esp + 0x20]
push ecx
call fcn.005960f0
fmul qword [0xacaab0]
push ecx
fstp qword [esp]
call fcn.005af298
add esp, 8
call fcn.005af368
cmp esi, ebx
je 0x59629d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x596296
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013a0
Capabilities:
Persist via appinit_dlls registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013de
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov eax, 0x44bd30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013e6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x1c]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x44bd30
push 1
push 0
push str.AppInit_DLLs
push edx
call esi
test eax, eax
jne 0x4013cd
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.LoadAppInit_DLLs
push ecx
mov dword [ebp - 0x20], 1
call esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x40ab24]
mov edx, dword [0x40ab28]
mov eax, dword [0x40ab20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [str._B_e]
mov dword [ebp - 0xc], edx
mov edx, dword [0x40ab34]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40ab2c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x40ab38]
mov dword [ebp - 0x24], edx
xor edx, edx
or ecx, dword [0x40ab3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
mov eax, 0x40ab38
je 0x4014a0
lea esp, [esp]
mov ecx, dword [eax + 0xc]
add eax, 8
add edx, 8
or ecx, dword [eax]
jne 0x401490
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x40ab38
push 0x40ab38
call fcn.00401200
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x44bd30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014f5
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push 0x40ab38
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x1001602b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10016043
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1001608e
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 - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10016071
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], 1
jge 0x1001608e
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017f3a
mov dword [eax], 0x25bfc88e
jmp 0x10016066
mov esp, ebp
pop ebp
ret

Function at 0x100163a9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10016404
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
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 0x100163e5
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], 3
jge 0x10016402
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017f3a
mov dword [eax], 1
jmp 0x100163da
jmp 0x1001640c
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret

Function at 0x100178c3
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001791b
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100178ff
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x10017919
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10017f3a
or dword [eax], 0xffffffff
jmp 0x100178f4
jmp 0x10017931
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10017931
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esp, ebp
pop ebp
ret
Function at 0x1001d5ee
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001d609
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x1001d731
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [eax], 0x59a1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x59a1
je 0x1001d690
mov dword [ebp - 0xc], 1
jmp 0x1001d694
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 3
jne 0x1001d6a3
mov dword [ebp - 0x10], 1
jmp 0x1001d6a7
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add eax, 3
jne 0x1001d6c4
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10017f3a
cmp dword [eax], 0
jne 0x1001d6c4
and dword [ebp - 0x18], 0
jmp 0x1001d6cb
mov dword [ebp - 0x18], 1
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10017f3a
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jle 0x1001d6e5
mov dword [ebp - 4], 1
jmp 0x1001d6e9
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0x4c1c
jge 0x1001d703
mov dword [ebp - 0x20], 1
jmp 0x1001d707
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
imul ecx, dword [ebp - 0x20]
cmp dword [eax], ecx
je 0x1001d720
mov dword [ebp - 0x24], 1
jmp 0x1001d724
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x58]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1001e60b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001e639
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001e637
push 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1001e655
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1001e655
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esp, ebp
pop ebp
ret
Function at 0x10028161
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1002817b
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x100281e2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0x16f4
mov eax, dword [ebp - 0x18]
push dword [eax]
push dword [ebp - 0x1c]
push 0x3ab1
push 0
mov eax, dword [ebp - 0x20]
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.1002e995
add esp, 0x20
mov esp, ebp
pop ebp
ret

Function at 0x10029482
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100294b0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100294ae
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x100294d7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x100294d7
push 0
push 0x1de6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esp, ebp
pop ebp
ret