joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x446a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push 0x455d8c
lea ecx, [esp + 0xc]
call fcn.00440f83
xor ebx, ebx
push 0x455d8c
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.00440f83
push 0x455d8c
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.00440f83
mov eax, dword [esp + 0x28]
lea ecx, [esp + 6]
lea edx, [esp + 0xc]
push ecx
mov eax, dword [eax]
push edx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov byte [esp + 0x34], 2
mov dword [esp + 0x28], ebx
call fcn.00444d78
test eax, eax
je 0x401b28
push 0x44f174
lea ecx, [esp + 0xc]
call fcn.0043fc71
push 0x44f174
lea ecx, [esp + 0xc]
call fcn.0043fc1e
lea ecx, [esp + 8]
call fcn.00441194
mov eax, dword [esp + 8]
cmp dword [eax - 8], ebx
je 0x401b28
mov ecx, dword [esp + 0x2c]
push eax
call fcn.00441052
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call fcn.00441002
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00440f59
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.00440f59
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00440f59
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00440f59
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.00440f59
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00440f59
mov ecx, dword [esp + 0x18]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc

Function at 0x402fbf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402fdf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00404a1f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403002
test byte [esp + 8], 2
je 0x403002
call fcn.00404a92
mov dword [eax], 0xd
call fcn.00404a9b
mov dword [eax], 5
jmp 0x402fdb
xor eax, eax
ret
Function at 0x413240
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp byte [esi + 0x41], 2
jne 0x413261
push 1
push esi
call fcn.004127a0
add esp, 8
cmp eax, ebx
jne 0x41335d
mov eax, dword [esi + 0x50]
mov dword [esi + 0x50], ebx
cmp eax, ebx
jle 0x413276
mov eax, dword [esp + 0x10]
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
ret
mov cl, byte [esi + 0x41]
mov eax, dword [esi + 0x18]
cmp cl, bl
jne 0x41328f
mov ecx, dword [esp + 0x10]
pop esi
xor eax, eax
pop ebx
mov dword [ecx], 1
ret
mov ecx, dword [esi + 0x1c]
xor edx, edx
inc ecx
mov word [esi + 0x3a], bx
mov dword [esi + 0x1c], ecx
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x413342
cmp byte [eax + 4], bl
jne 0x4132e3
mov edx, dword [eax + 0x44]
xor ecx, ecx
mov cl, byte [eax + 8]
lea eax, [ecx + edx + 8]
push eax
call fcn.004118b0
push eax
push esi
call fcn.00412e00
add esp, 0xc
cmp eax, ebx
jne 0x41335d
push esi
call fcn.00412e70
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], ebx
pop esi
pop ebx
ret
push eax
call fcn.00413360
add esp, 4
test eax, eax
jne 0x413316
push esi
call fcn.004133a0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
xor edx, edx
add esp, 4
mov dx, word [eax + 0x14]
cmp ecx, edx
jl 0x413328
push eax
call fcn.00413360
add esp, 4
test eax, eax
je 0x4132f0
mov eax, dword [esp + 0x10]
mov dword [eax], 1
mov byte [esi + 0x41], bl
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
mov dl, byte [eax + 6]
cmp dl, bl
je 0x41334f
push ecx
push esi
call fcn.00413240
add esp, 8
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], ebx
mov cl, byte [eax + 4]
cmp cl, bl
je 0x413354
pop esi
xor eax, eax
pop ebx
ret
push esi
call fcn.00412e70
add esp, 4
pop esi
pop ebx
ret
Function at 0x4133e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp byte [esi + 0x41], 2
jne 0x413402
push 1
push esi
call fcn.004127a0
add esp, 8
cmp eax, ebx
jne 0x4134c9
mov eax, dword [esi + 0x50]
mov dword [esi + 0x50], ebx
cmp eax, ebx
jge 0x413418
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], ebx
xor eax, eax
pop ebx
ret
cmp byte [esi + 0x41], bl
jne 0x41342d
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
mov dword [ecx], 1
pop ebx
ret
mov eax, dword [esi + 0x18]
mov edi, dword [esp + 0x14]
cmp byte [eax + 4], bl
jne 0x413466
mov edx, dword [esi + 0x1c]
push edx
push eax
call fcn.004128a0
push eax
call fcn.004118b0
push eax
push esi
call fcn.00412e00
add esp, 0x14
cmp eax, ebx
jne 0x4134c9
push esi
call fcn.00412ef0
add esp, 4
mov dword [edi], ebx
pop edi
pop esi
pop ebx
ret
cmp dword [esi + 0x1c], ebx
jne 0x41348b
push eax
call fcn.00413360
add esp, 4
test eax, eax
jne 0x4134b2
push esi
call fcn.004133a0
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
add esp, 4
cmp ecx, ebx
je 0x41346b
mov edx, dword [esi + 0x1c]
mov word [esi + 0x3a], bx
dec edx
mov dword [esi + 0x1c], edx
mov cl, byte [eax + 6]
cmp cl, bl
je 0x4134c5
cmp byte [eax + 4], bl
jne 0x4134c5
push edi
push esi
call fcn.004133e0
add esp, 8
mov dword [edi], ebx
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x14]
mov byte [esi + 0x41], bl
pop edi
pop esi
mov dword [eax], 1
xor eax, eax
pop ebx
ret
xor eax, eax
mov dword [edi], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x41c210
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call fcn.0041c2b0
mov edi, eax
add esp, 4
xor ebp, ebp
test edi, edi
mov dword [esp + 0x14], ebp
je 0x41c273
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x41c25a
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c25a
mov eax, ebp
inc ebp
cmp eax, 3
jge 0x41c25a
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41c233
push edi
call fcn.0040d9b0
add esp, 4
mov eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0xa
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x41c263
push ebx
call ebp
cmp eax, 0xffffffff
je 0x41c263
mov eax, dword [esp + 0x14]
mov ecx, eax
inc eax
cmp ecx, 3
mov dword [esp + 0x14], eax
jge 0x41c263
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x41c27f

Function at 0x41c370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call fcn.0041c2b0
mov esi, eax
add esp, 4
test esi, esi
je 0x41c3a4
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call fcn.0040d9b0
add esp, 4
mov eax, edi
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
mov eax, edx
pop esi
ret
Function at 0x41c640
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x458180]
sub esp, 0x3a4
test eax, eax
push ebp
push esi
push edi
je 0x41c66f
push 0x118
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0040a500
add esp, 0xc
mov byte [esp + 0x124], 0
jmp 0x41c6d4
call fcn.0041c320
test eax, eax
je 0x41c6c4
lea ecx, [esp + 0x144]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea edx, [esp + 0x144]
push edx
call fcn.0041c770
mov esi, eax
add esp, 4
test esi, esi
je 0x41c6d4
push 0x118
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0040a500
push esi
mov byte [esp + 0x134], 0
call fcn.0040d9b0
add esp, 0x10
jmp 0x41c6d4
lea ecx, [esp + 0xc]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x41c6f6
lea eax, [esp + 0xc]
dec eax
cmp byte [eax + ecx], 0x5c
jne 0x41c6f6
dec ecx
test ecx, ecx
jg 0x41c6eb
mov esi, dword [esp + 0x3b4]
mov byte [esp + ecx + 0xc], 0
lea edx, [esp + 0xc]
push edx
push str._s_sqlite_
push esi
call fcn.004041bb
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + esi]
push eax
push 0xf
call fcn.004349a0
add esp, 0x14
mov ecx, 0xf
xor eax, eax
xor edx, edx
mov al, byte [edi + esi]
mov ebp, 0x3e
div ebp
inc edi
dec ecx
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x41c733
push esi
mov byte [edi + esi], 0
call fcn.0041c370
add esp, 4
test eax, eax
jne 0x41c702
pop edi
pop esi
pop ebp
add esp, 0x3a4
ret

Function at 0x41c9e0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
jne 0x41c9ef
pop edi
xor eax, eax
pop ebx
ret
call fcn.0041c320
test eax, eax
jne 0x41ca0d
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jbe 0x41ca0d
pop edi
pop ebx
ret
push esi
push ebx
call fcn.0041c2b0
mov esi, eax
add esp, 4
test esi, esi
je 0x41ca31
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push esi
mov edi, eax
call fcn.0040d9b0
add esp, 4
jmp 0x41ca3a
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
pop esi
jne 0x41ca45
pop edi
xor eax, eax
pop ebx
ret
mov eax, edi
xor ecx, ecx
and al, 0x10
pop edi
cmp al, 0x10
pop ebx
sete cl
mov eax, ecx
ret
Function at 0x41cf70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x458188]
test eax, eax
jne 0x41cfae
call fcn.0041cef0
mov eax, dword [0x458188]
test eax, eax
jne 0x41cfa9
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x458174], eax
jne 0x41cf9f
call fcn.0041cf00
xor eax, eax
ret
mov dword [0x458188], 1
call fcn.0041cf00
mov eax, dword [0x458174]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebx, eax
mov eax, dword [esp + 8]
test eax, eax
jle 0x41d005
test ebx, ebx
jne 0x41d03c
push 0xc
call fcn.0041c1d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41d03c
mov edx, dword [0x449078]
mov ecx, ebx
push ebx
mov dword [ecx], edx
mov eax, dword [0x44907c]
mov dword [ecx + 4], eax
mov edx, dword [0x449080]
mov dword [ecx + 8], edx
mov eax, dword [0x458174]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, ebx
pop ebx
ret
test ebx, ebx
je 0x41d03c
test eax, eax
jge 0x41d03c
push esi
push edi
mov ecx, 3
mov edi, 0x449078
mov esi, ebx
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
jne 0x41d03c
push ebx
call fcn.0041c200
mov eax, dword [0x458174]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
xor ebx, ebx
mov eax, ebx
pop ebx
ret
Function at 0x4271d0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp edi, 2
jl 0x427253
mov ebx, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov al, byte [ebx + edi - 1]
mov dl, byte [ebx]
mov cl, byte [eax + 0x448c08]
mov eax, ecx
xor ecx, ecx
mov cl, byte [edx + 0x448c08]
lea eax, [eax + eax*2]
shl ecx, 2
xor eax, ecx
mov ecx, 0x7f
xor eax, edi
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + str.Pk_]
mov esi, eax
dec esi
js 0x427253
xor ecx, ecx
mov cl, byte [esi + 0x4497f8]
cmp ecx, edi
jne 0x427246
xor edx, edx
push edi
mov dx, word [esi*2 + 0x449870]
push ebx
add edx, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHEREVIRTUAL
push edx
call fcn.0040dd50
add esp, 0xc
test eax, eax
je 0x42725c
xor eax, eax
mov al, byte [esi + 0x449780]
mov esi, eax
dec esi
jns 0x42721b
pop edi
pop esi
mov eax, 0x17
pop ebx
ret
xor eax, eax
pop edi
mov al, byte [esi + 0x44995c]
pop esi
pop ebx
ret
Function at 0x4302b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x4302bf
pop edi
xor eax, eax
pop esi
ret
push 1
push 0x44
call fcn.0040d920
mov esi, eax
add esp, 8
test esi, esi
jne 0x4302d4
pop edi
pop esi
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
call fcn.00430030
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
call fcn.00430110
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
call fcn.0042ff30
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00430030
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
call fcn.0042ff30
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
call fcn.00430030
mov dword [esi + 0x1c], eax
mov cl, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
call fcn.004302b0
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
push eax
call fcn.0042ff30
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.0042ff30
mov dword [esi + 0x2c], eax
or eax, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dl, byte [edi + 6]
add esp, 0x24
mov byte [esi + 6], dl
mov cl, byte [edi + 7]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 7], cl
mov byte [esi + 8], 0
mov byte [esi + 9], 0
mov dword [esi + 0x24], 0
mov eax, esi
pop edi
pop esi
ret
Function at 0x445884
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4458b2
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4458d0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004457ea
jmp 0x4458d0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4458d0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004457ea
test edi, edi
mov eax, edi
jne 0x4458ba
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42fb30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
jmp 0x42fb4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42fb51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42fb40
mov eax, 1
add ebx, ebx
jne 0x42fb63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42fb58
jne 0x42fb74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fb58
xor ecx, ecx
sub eax, 3
jb 0x42fb88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42fbfa
mov ebp, eax
add ebx, ebx
jne 0x42fb93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42fba0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42fbc4
inc ecx
add ebx, ebx
jne 0x42fbb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42fba5
jne 0x42fbc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42fba5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42fbe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42fbd5
jmp 0x42fb46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42fbe4
add edi, ecx
jmp 0x42fb46
pop esi
mov edi, esi
mov ecx, 0xde9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42fc02
cmp byte [edi], 9
jne 0x42fc02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42fc07
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x42fc7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f438]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f4b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42fc34
mov ecx, edi
jns 0x42fc63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f4b4]
or eax, eax
je 0x42fc79
mov dword [ebx], eax
add ebx, 4
jmp 0x42fc51
call dword [esi + 0x2f4c4]
mov ebp, dword [esi + 0x2f4b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42fcb3
sub esp, 0xffffff80
jmp 0x41bca4

Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x100035b0
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4c
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x105
lea ecx, [ebp - 0x438]
push ecx
push 0
call fcn.10019b80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x22c]
push eax
push str.__s_rundll32.exe____s__service
push 0x209
lea ecx, [ebp - 0x84c]
push ecx
call fcn.10009916
add esp, 0x14
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000372a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x84c]
push ecx
push 0
push 2
push 0x10
push 0xa0000000
push str.Performance_Optimizer
push 0x10026328
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003685
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
jmp 0x1000371e
push 0x10026328
push str.Performance_Optimizer
push str._s___s_
push 0x200
lea ecx, [ebp - 0xc4c]
push ecx
call fcn.10009916
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x84c]
push ecx
push 0
push 2
push 0x10
push 0xa0000000
lea edx, [ebp - 0xc4c]
push edx
push 0x10026328
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100036fa
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0
jmp 0x1000371e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10003711
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jmp 0x10003718
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000374e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10003741
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x10003748
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10003760
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10003820
push 0x10000
push 0x10026328
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100037f0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x100037c0
mov dword [ebp - 4], 0
jmp 0x100037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100037d7
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x100037de
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10003807
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x1000380e
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003844
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10003837
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
jmp 0x1000383e
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10003850
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000394e
push 0x20000000
push 0x10026328
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000391e
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x40], 0x10
je 0x100038ca
cmp dword [ebp - 0x40], 2
jne 0x100038d3
mov dword [ebp - 4], 0
jmp 0x10003912
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x100038ee
mov dword [ebp - 4], 0
jmp 0x10003912
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10003905
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
jmp 0x1000390c
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10003935
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
jmp 0x1000393c
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10003965
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
jmp 0x1000396c
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret