joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2000b460
Capabilities:
Set file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea eax, [esp + 0x10]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0
push 0
push 1
push edi
xor bl, bl
call ebp
call dword [0x2001a230]
cmp eax, 0x7a
jne 0x2000b4da
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x2000b4da
push eax
call fcn.20019304
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
push edx
push esi
push 1
push edi
call ebp
mov eax, dword [esi]
test eax, eax
je 0x2000b4cd
push 0x18f
push eax
mov eax, dword [esp + 0x20]
add eax, 0x12c
push eax
call dword [0x2001a33c]
add esp, 0xc
mov bl, 1
test esi, esi
je 0x2000b4da
push esi
call fcn.200192a0
add esp, 4
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret 8

Function at 0x2000b610
Capabilities:
Delete directory

Disassembly:
mov eax, dword [0x20021ab8]
sub esp, 0x20c
cmp eax, 0xffffffff
je 0x2000b627
push eax
call dword [0x2001a21c]
push esi
mov esi, dword [0x2001a228]
push 0x20024010
call esi
mov eax, dword [0x20024470]
mov byte [0x20024351], 1
test eax, eax
je 0x2000b64e
push 0xffffffffffffffff
push eax
call dword [0x2001a220]
mov eax, 0x20024128
test eax, eax
je 0x2000b65a
push eax
call esi
push edi
mov edi, dword [0x2001a23c]
lea ecx, [esp + 0xc]
push 0x20024248
push ecx
call edi
mov edx, dword [0x200212d0]
push 0x20024248
lea eax, [esp + 0x114]
push edx
push eax
call dword [0x2001a4a8]
lea ecx, [esp + 0x18]
push 0x200219f8
push ecx
call fcn.200125c0
lea edx, [esp + 0x20]
push edx
call fcn.200065e0
add esp, 0x18
test al, al
je 0x2000b700
push 1
push 0x20021500
call fcn.200032a0
push 1
push 0x200214ec
call fcn.200032a0
lea eax, [esp + 8]
lea ecx, [esp + 0x110]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call esi
mov byte [0x20024474], 0
jmp 0x2000b707
mov byte [0x20024474], 1
push 4
push 0
push 0x20024010
call dword [0x2001a244]
mov edx, dword [0x20022a00]
lea eax, [esp + 0xc]
add edx, 0x10
push edx
push eax
call edi
lea ecx, [esp + 0xc]
push 0x2002192c
push ecx
call fcn.2000fa70
add esp, 8
lea edx, [esp + 0xc]
push edx
call esi
call fcn.2000c380
mov esi, eax
mov al, byte [0x20024474]
test al, al
pop edi
je 0x2000b79e
push 0
push esi
call fcn.20008a20
add esp, 8
cmp eax, 0xbca43352
je 0x2000b779
mov eax, dword [0x20021460]
push 0
push 0x20024248
push esi
push eax
call sym.dbghelp.dll_MapDebugInformation
add esp, 0x10
mov al, byte [0x20024474]
test al, al
je 0x2000b79e
test byte [0x20024114], 0x10
je 0x2000b79e
lea ecx, [esp + 0x10c]
push ecx
push 0x80000002
call dword [0x2001a404]
push 0
push 5
push 7
call fcn.20011fe0
mov al, byte [0x20024474]
add esp, 0xc
test al, al
pop esi
je 0x2000b7c3
push 0x20024248
call fcn.20006600
add esp, 4
push 0
push 0
push 1
call fcn.20011fe0
mov edx, dword [0x20024240]
add esp, 0xc
push edx
call dword [0x2001a294]
add esp, 0x20c
ret
Function at 0x2000bb90
Capabilities:
Enumerate process modules

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
cmp edi, 8
jg 0x2000bbaf
mov ebp, 1
mov ecx, edi
shl ebp, cl
xor ebx, ebx
jmp 0x2000bbb3
xor ebx, ebx
xor ebp, ebp
lea eax, [ebp*4 + 0x28]
push eax
call fcn.20019304
mov edx, edi
mov esi, eax
mov eax, dword [esp + 0x20]
and edx, 0xffff
imul edx, eax
mov ecx, dword [esp + 0x24]
add edx, 0x1f
sar edx, 3
and edx, 0xfffffffc
add esp, 4
imul edx, ecx
cmp edi, 0x10
mov dword [esi], 0x28
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov word [esi + 0xc], 1
mov word [esi + 0xe], di
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x14], edx
jge 0x2000bca7
push ebx
call dword [0x2001a4d4]
mov edi, eax
push 1
push 1
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
push 0
push esi
push 0
mov ebx, eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
push edi
push 0
call dword [0x2001a434]
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0xbc]
test cl, cl
je 0x2000bca7
test ebp, ebp
jle 0x2000bca7
lea eax, [esi + 0x29]
mov edi, ebp
xor ecx, ecx
mov cl, byte [eax]
add eax, 4
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea ebx, [ecx + edx*8]
xor edx, edx
mov dl, byte [eax - 3]
mov ecx, edx
shl ecx, 4
add ecx, edx
xor edx, edx
mov dl, byte [eax - 5]
lea ecx, [ecx + ecx*8]
lea ecx, [ebx + ecx*2]
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*4]
lea edx, [edx + edx*8]
add ecx, edx
sar ecx, 0xa
mov byte [eax - 5], cl
mov byte [eax - 4], cl
mov byte [eax - 3], cl
dec edi
jne 0x2000bc63
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x2000bed0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [0x2001a2e0]
test eax, eax
je 0x2000bf46
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [0x2001a184]
test eax, eax
je 0x2000bf46
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x2000bf46
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x2000bf34
mov edx, esi
cmp edi, ebx
jb 0x2000bf3e
add edx, ebx
cmp edi, edx
jbe 0x2000bf50
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x2000bf26
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x2000c3d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x200244b0]
push ebx
push 0
push 0x80
push 4
push 0
push 3
add eax, 0xd
push 0x40000000
push eax
call dword [0x2001a27c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x2000c473
push 0
push ebx
mov dword [esp + 0xc], 0
call dword [0x2001a278]
cmp eax, 0x3200000
jae 0x2000c41f
push 2
push 0
push 0
push ebx
call dword [0x2001a284]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push ebp
call dword [0x2001a240]
mov edi, eax
push edi
call fcn.20019304
add esp, 4
mov esi, eax
test edi, edi
jle 0x2000c450
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x44
mov byte [eax], dl
inc eax
dec ebp
jne 0x2000c444
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [0x2001a288]
push ebx
call dword [0x2001a21c]
push esi
call fcn.200192a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x2000ff60
Capabilities:
Clear file content

Disassembly:
sub esp, 0x400
push esi
push edi
push 0
push 0
push 0x200216e8
push 1
push 0x200216d4
push 0x2002169c
push 0x80000002
call fcn.20011840
mov ecx, 0xc
mov esi, str.R_PP_K_KxyiczL
lea edi, [esp + 0x24]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xf3
lea edi, [esp + 0x55]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
push 0
push 4
lea eax, [esp + 0x34]
push 0x20021654
push eax
push 0x80000002
call fcn.20011840
mov esi, dword [0x2001a24c]
add esp, 0x38
lea ecx, [esp + 8]
push 0x20021644
push ecx
call esi
push 0
push 1
push 0
push 4
lea edx, [esp + 0x18]
push 0x20021628
push edx
push 0x80000002
call fcn.20011840
add esp, 0x1c
lea eax, [esp + 8]
push 0x20021610
push 0x5c
push eax
call dword [0x2001a330]
mov edi, dword [0x2001a23c]
add esp, 8
push eax
call edi
mov ecx, dword [esp + 0x410]
push 0
push ecx
push 0
push 4
lea edx, [esp + 0x18]
push 0x20021604
push edx
push 0x80000002
call fcn.20011840
add esp, 0x1c
lea eax, [esp + 8]
push 0x200215d4
push eax
call edi
push 0
push 2
push 0
push 4
lea ecx, [esp + 0x18]
push 0x200215cc
push ecx
push 0x80000002
call fcn.20011840
add esp, 0x1c
lea edx, [esp + 8]
push 0x200215c0
push edx
call esi
mov eax, dword [esp + 0x40c]
push 0
push 0
push eax
push 2
lea ecx, [esp + 0x18]
push 0x200215b4
push ecx
push 0x80000002
call fcn.20011840
add esp, 0x1c
push 0xf003f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x2001016f
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebp
push 0xf01ff
push 0x200215a8
push edi
call esi
mov ebp, eax
test ebp, ebp
je 0x2001013a
push ebx
push ebp
call fcn.20005200
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x20010127
push 0xf01ff
push 0x2002159c
push edi
call esi
mov esi, eax
push 1
push esi
call fcn.20010fb0
push 0
push ebx
call fcn.2000bd10
push esi
call fcn.20005200
add esp, 0x14
test eax, eax
jne 0x20010120
mov ebx, dword [0x2001a298]
push 0x7d0
call ebx
push esi
call fcn.20005200
add esp, 4
test eax, eax
je 0x2001010c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [0x20022a00]
lea eax, [esp + 0xc]
add edx, 0x128
push edx
push 0x20021514
push eax
call dword [0x2001a4a8]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [0x2001a2d4]
pop ebp
pop edi
pop esi
add esp, 0x400
ret
Function at 0x200102e0
Capabilities:
Clear file content
Enumerate services

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
push ebx
push edi
mov edi, dword [esp + 0x30]
push 0xf01ff
push edi
mov dword [esp + 0x10], ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, eax
test ebx, ebx
je 0x200103fe
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
call dword [0x2001a230]
cmp eax, 0x7a
jne 0x200103f7
mov eax, dword [esp + 0x30]
push ebp
push esi
push eax
mov ebp, eax
call fcn.20019304
add esp, 4
lea edx, [esp + 0x38]
mov esi, eax
push edx
push ebp
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
mov eax, dword [esi]
mov ebp, dword [0x2001a33c]
mov dword [edi + 0x2c4], eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x2c0], ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x20010375
push 0xc7
lea edx, [edi + 0x64]
push eax
push edx
call ebp
add esp, 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x2001038b
push 0x1f
push eax
lea eax, [edi + 0x2cc]
push eax
call ebp
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x200103a4
push 0x103
lea ecx, [edi + 0x302]
push eax
push ecx
call ebp
add esp, 0xc
mov ecx, dword [esp + 0x10]
push edi
push ebx
call fcn.2000b460
push esi
call fcn.200192a0
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
pop esi
pop ebp
je 0x200103e6
lea edx, [esp + 0xc]
push edx
push ebx
call dword [0x2001a040]
test eax, eax
je 0x200103e6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x2c8], eax
mov dword [edi + 0x2bc], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
mov al, 1
pop ebx
add esp, 0x20
ret 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
Function at 0x20010990
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x200195f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x2001ac50
mov edi, dword [0x2001a290]
lea eax, [esi + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
lea ecx, [esi + 0x10]
push 0
push ecx
call edi
mov edx, dword [esi + 0x2c]
mov edi, dword [0x2001a220]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi + 0x30]
push 0xffffffffffffffff
push eax
call edi
mov ecx, dword [esi + 0x2c]
mov edi, dword [0x2001a21c]
push ecx
call edi
mov edx, dword [esi + 0x30]
push edx
call edi
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x20010a07
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.20011520
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x20011020
Capabilities:
Query service status

Disassembly:
sub esp, 0x24c
push esi
mov dword [esp + 4], 0
call fcn.20001000
mov esi, eax
test esi, esi
jne 0x20011042
pop esi
add esp, 0x24c
ret
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x128]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x194]
push eax
push ecx
push esi
push 0
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x2c], 0xc8
call dword [sym.imp.MSVCRT.dll_rand]
test eax, eax
je 0x200110cc
push 0x200211e8
call dword [0x2001a2ec]
push 0x200211d0
push eax
call dword [0x2001a2ac]
test eax, eax
je 0x200110cc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x188]
push edx
push ecx
call eax
test eax, eax
je 0x200110cc
mov eax, dword [esp + 0xc]
lea edx, [esp + 4]
push edx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [0x2001a25c]
push esi
call fcn.200192a0
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
jne 0x20011202
push ebx
push ebp
lea edx, [esp + 0x20]
push edi
xor ebp, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edx
push ebp
push ebp
lea eax, [esp + 0x20]
push ebp
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
push 0x80000003
mov dword [esp + 0x34], 0xff
call ebx
cmp eax, 0x103
je 0x200111ff
test eax, eax
jne 0x200111ce
lea edx, [esp + 0x30]
push 0x2d
push edx
call dword [0x2001a330]
mov edi, eax
push 9
lea eax, [esp + 0x3c]
push 0x20022148
push eax
call dword [0x2001a3a0]
add esp, 0x14
test eax, eax
jne 0x200111ce
mov esi, 0x20022144
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x20011178
test cl, cl
je 0x20011174
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x20011178
add eax, 2
add esi, 2
test cl, cl
jne 0x20011154
xor eax, eax
jmp 0x2001117d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x200111b5
mov esi, 0x2002213c
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x200111ac
test cl, cl
je 0x200111a8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x200111ac
add eax, 2
add esi, 2
test cl, cl
jne 0x20011188
xor eax, eax
jmp 0x200111b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x200111ce
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x200111ff
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push 0
push 0
push 0
lea ecx, [esp + 0x40]
inc ebp
push eax
push ecx
push ebp
push 0x80000003
mov dword [esp + 0x34], 0xff
call ebx
cmp eax, 0x103
jne 0x20011119
pop edi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop esi
add esp, 0x24c
ret
Function at 0x200115d0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 4]
mov edi, dword [esi + 0xc]
mov edx, dword [esi + 0xf4]
push ecx
push ebp
push eax
sub edi, eax
mov eax, dword [esi + 0xf8]
push edx
push 1
push edi
push 0
push 0
push eax
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
mov eax, dword [esi + 0xdc]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 0x120]
sub eax, ebp
dec eax
imul ecx, ebx
imul eax, dword [esi + 0x124]
mov ebp, dword [esi + 0x110]
sar ecx, 3
add eax, ecx
xor ecx, ecx
add eax, ebp
mov ebp, dword [esi + 0x10c]
cmp edi, ecx
mov dword [esi + 0xec], ecx
jle 0x20011685
mov edx, dword [eax]
cmp edx, dword [ebp]
je 0x20011673
mov edx, dword [esi + 0xec]
test edx, edx
jne 0x2001165b
lea edx, [ebx + ecx]
mov dword [esi + 0xe4], edx
add ecx, 0x18
lea edx, [ebx + ecx]
mov dword [esi + 0xec], edx
mov edx, dword [esi + 0xd4]
add eax, edx
add ebp, edx
jmp 0x20011681
mov edx, dword [esi + 0xd0]
add eax, 4
add ebp, 4
add ecx, edx
cmp ecx, edi
jl 0x20011641
mov edi, dword [esi + 0xec]
test edi, edi
jle 0x20011702
mov eax, dword [esi + 0xe4]
lea ebp, [esi + 0xe4]
cmp eax, ebx
jle 0x200116a1
mov ebx, eax
mov ecx, dword [esp + 0x14]
mov dword [ebp], ebx
cmp dword [0x200245d4], ecx
jne 0x200116b8
mov dword [esi + 0xe8], ecx
jmp 0x200116cb
lea eax, [ecx - 0x13]
xor edx, edx
test eax, eax
setle dl
dec edx
and eax, edx
mov dword [esi + 0xe8], eax
mov eax, dword [esi + 0xc]
cmp edi, eax
jge 0x200116d4
mov eax, edi
mov dword [esi + 0xec], eax
lea eax, [ecx + 0x13]
mov ecx, dword [esi + 0x10]
cmp eax, ecx
jl 0x200116e6
mov eax, ecx
mov dword [0x200245d4], eax
push ebp
mov ecx, esi
mov dword [esi + 0xf0], eax
call sym.dbghelp.dll_FindExecutableImageEx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
pop edi
pop esi
pop ebp
mov dword [0x200245d4], 0
xor al, al
pop ebx
ret 4
Function at 0x20011840
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2001ac78
push 0x200192a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x20]
cmp eax, 3
ja case.default.0x20011877
jmp dword [eax*4 + 0x200119bc]
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
jne case.default.0x20011877
lea ecx, [ebp - 0x24]
push ecx
push 0x2001f
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne case.default.0x20011877
mov edx, dword [ebp + 0x14]
cmp edx, ebx
jbe case.default.0x20011877
cmp edx, 2
jbe 0x20011903
cmp edx, 4
jne case.default.0x20011877
push edx
lea ecx, [ebp + 0x1c]
push ecx
push edx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne case.default.0x20011877
jmp 0x20011987
mov esi, dword [ebp + 0x18]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push edx
push ebx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne case.default.0x20011877
jmp 0x20011987
lea eax, [ebp - 0x24]
push eax
push 0x2001f
push ebx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
test eax, eax
jne case.default.0x20011877
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne case.default.0x20011877
jmp 0x20011987
lea edx, [ebp - 0x24]
push edx
push 0x2001f
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
test eax, eax
jne case.default.0x20011877
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
jne case.default.0x20011877
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.200119ae
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x200121e0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x20]
push esi
xor esi, esi
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test eax, eax
je 0x20012210
xor eax, eax
pop esi
add esp, 0x14
ret
push ebp
mov ebp, dword [esp + 0x30]
cmp ebp, esi
push edi
jne 0x200122d2
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xd], eax
push 0xa
mov dword [esp + 0x15], eax
push ecx
mov dword [esp + 0x1d], eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
call fcn.20013630
add esp, 8
push 1
push 0x20021500
call fcn.200032a0
push 1
push 0x200214ec
call fcn.200032a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
push 0xf003f
push esi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xc]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push ecx
call edi
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push 8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
lea ecx, [esp + 0xc]
neg esi
sbb esi, esi
push ecx
inc esi
call dword [0x2001a228]
mov eax, dword [esp + 0x2c]
push eax
call edi
pop edi
mov eax, esi
pop ebp
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x24]
push ebx
push edx
push 0x20019
push esi
push eax
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_]
mov eax, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea edx, [esp + 0x34]
push edx
push esi
push esi
push esi
push ebp
push eax
call ebx
test eax, eax
jne 0x20012360
mov ecx, dword [esp + 0x34]
add ecx, 2
push ecx
call fcn.20019304
mov ecx, dword [esp + 0x2c]
add esp, 4
lea edx, [esp + 0x34]
mov edi, eax
push edx
lea eax, [esp + 0x30]
push edi
push eax
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x20012357
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push edx
push edi
push eax
push 0
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push edi
call fcn.200192a0
add esp, 4
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push edx
call edi
mov eax, dword [esp + 0x30]
pop ebx
push eax
call edi
pop edi
mov eax, esi
pop ebp
pop esi
add esp, 0x14
ret