joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002400
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10018ec8
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], 0x10019c38
mov edi, dword [0x100192d0]
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 [0x100192d4]
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 [0x100192d8]
push ecx
call edi
mov edx, dword [esi + 0x30]
push edx
call edi
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10002477
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call sym.dbghelp.dll_SymFunctionTableAccess64
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100024a0
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.100109e0
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test esi, esi
jbe 0x100024d5
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100223b8]
xor eax, edx
inc ecx
dec esi
jne 0x100024b6
pop ebx
not eax
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100024f1
push esi
push 0x1002050c
push eax
call dword [0x10019480]
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x100028a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
pushal
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0x14
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x100028e1
mov esi, dword [edx + 0x28]
mov edi, dword [ebp + 8]
mov bx, word [esi]
mov bh, byte [edi]
cmp bl, 0x5a
jg 0x100028d5
cmp bl, 0x41
jl 0x100028d5
add bl, 0x20
cmp bl, bh
jne 0x100028b4
inc esi
inc esi
inc edi
test bx, bx
jne 0x100028c3
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10003570
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10022290]
push ebx
push 0
push 0x80
push 4
push 0
push 3
add eax, 0xd
push 0x40000000
push eax
call dword [0x100192a4]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10003613
push 0
push ebx
mov dword [esp + 0xc], 0
call dword [0x100192a8]
cmp eax, 0x3200000
jae 0x100035bf
push 2
push 0
push 0
push ebx
call dword [0x100192ac]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push ebp
call dword [0x100192ec]
mov edi, eax
push edi
call fcn.1001855c
add esp, 4
mov esi, eax
test edi, edi
jle 0x100035f0
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 0x100035e4
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [0x100192b0]
push ebx
call dword [0x100192d8]
push esi
call fcn.10018556
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10004790
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 [0x10019258]
test eax, eax
je 0x10004806
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [0x1001910c]
test eax, eax
je 0x10004806
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 0x10004806
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x100047f4
mov edx, esi
cmp edi, ebx
jb 0x100047fe
add edx, ebx
cmp edi, edx
jbe 0x10004810
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x100047e6
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 0x10005500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], 1
call fcn.1000c240
add esp, 8
nop
xor ecx, ecx
test eax, eax
jle 0x10005554
push ebx
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0xa
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x10005523
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10006580
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, 0x5f8
mov eax, esi
mov dl, byte [esi + 0xf]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ecx
jne 0x10006590
mov al, byte [esi]
mov cl, byte [esi + 0xe]
pop esi
cmp al, cl
pop ebx
jne 0x100065ac
cmp al, 0x40
jne 0x100065ac
mov al, 1
ret
xor al, al
ret

Function at 0x100067a0
Capabilities:
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.ADVAPI32.dll_InitializeSecurityDescriptor]
mov ebx, eax
test ebx, ebx
je 0x100068be
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
call dword [0x100192f4]
cmp eax, 0x7a
jne 0x100068b7
mov eax, dword [esp + 0x30]
push ebp
push esi
push eax
mov ebp, eax
call fcn.1001855c
add esp, 4
lea edx, [esp + 0x38]
mov esi, eax
push edx
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov eax, dword [esi]
mov ebp, dword [0x10019348]
mov dword [edi + 0x2c4], eax
mov ecx, dword [esi + 4]
mov dword [edi + 0x2c0], ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10006835
push 0xc7
lea edx, [edi + 0x64]
push eax
push edx
call ebp
add esp, 0xc
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000684b
push 0x1f
push eax
lea eax, [edi + 0x2cc]
push eax
call ebp
add esp, 0xc
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10006864
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.100037a0
push esi
call fcn.10018556
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
pop esi
pop ebp
je 0x100068a6
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_LsaClose]
test eax, eax
je 0x100068a6
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.ADVAPI32.dll_EnumServicesStatusA]
pop edi
mov al, 1
pop ebx
add esp, 0x20
ret 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
pop edi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
Function at 0x100068d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x10c]
push ebx
push esi
push edi
push 0x104
push eax
call dword [0x100192c0]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10020510
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [0x100192c4]
lea edx, [esp + 0x14]
push edx
call dword [0x100192ec]
lea ebx, [esp + eax + 0x14]
mov eax, dword [0x10021648]
or ecx, 0xffffffff
push ebx
lea edi, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.1000c620
mov edi, 0x10020688
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 4
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 2
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x100192a4]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006a71
mov esi, dword [0x10021648]
mov ecx, 0x17e
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x220]
call dword [0x10019324]
push eax
call dword [0x10019320]
mov edi, dword [0x1001931c]
add esp, 8
call edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x10019b50]
call fcn.10018568
test al, al
je 0x100069e1
mov ecx, 0x5f8
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
dec ecx
jne 0x100069ff
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x224]
push 0x5f8
push edx
push ebx
call dword [0x100192b0]
push ebx
call dword [0x100192d8]
mov edi, 0x10020678
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.10010c80
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x808
ret

Function at 0x10006cb0
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x10
mov eax, 4
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
push eax
push 0x10020640
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 4]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x10020638
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esp]
push edx
call dword [sym.imp.MSVCRT.dll__initterm]
mov eax, dword [esp + 0xc]
add esp, 0x10
ret
Function at 0x10006ea0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x10018b8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x828
lea eax, [esp + 0x14]
push ebp
push eax
xor ebp, ebp
push 0x1001d1ec
push 1
push ebp
push 0x1001d27c
mov byte [esp + 0x1b], 0
call dword [0x10022168]
cmp eax, ebp
je 0x10006ef7
xor al, al
pop ebp
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret
mov dword [esp + 8], ebp
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ebp
push edx
mov ecx, dword [eax]
push 0x1001d26c
push eax
mov dword [esp + 0x844], ebp
call dword [ecx + 0xc]
cmp eax, ebp
je 0x10006f4c
mov eax, dword [esp + 8]
mov dword [esp + 0x834], 0xffffffff
cmp eax, ebp
je 0x10006f34
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
pop ebp
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
add esp, 0x834
ret
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
cmp eax, ebp
jne 0x1000705f
push ebx
mov ebx, dword [0x1001926c]
push esi
mov esi, dword [esp + 0x844]
push edi
mov edi, dword [0x100192ec]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x10019c80
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x10007034
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push 0
mov word [esp + 0x2c], 8
mov ecx, dword [eax]
push edx
push 0x10020184
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1000702a
mov eax, dword [esp + 0x30]
push eax
call dword [0x1001934c]
add esp, 4
test eax, eax
jbe 0x1000702a
test esi, esi
je 0x10007026
mov edx, dword [esp + 0x30]
push 0
push 0
lea ecx, [esp + 0x40]
push 0x800
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call ebx
lea eax, [esp + 0x38]
push 0x64
push eax
push esi
call dword [0x10019348]
add esp, 0xc
push esi
call edi
push esi
lea ebp, [eax + ebp + 1]
call edi
mov ecx, dword [esp + 0x30]
lea esi, [esi + eax + 1]
push ecx
call dword [0x10022100]
inc byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov edx, dword [eax]
push ecx
push 1
push eax
call dword [edx + 0xc]
test eax, eax
je 0x10006f8a
pop edi
pop esi
pop ebx
mov eax, dword [esp + 0x840]
test eax, eax
je 0x1000706c
mov dword [eax], ebp
mov eax, dword [esp + 8]
mov dword [esp + 0x834], 0xffffffff
test eax, eax
je 0x10007085
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x82c]
mov al, byte [esp + 7]
pop ebp
mov dword fs:[0], ecx
add esp, 0x834
ret
Function at 0x100083f0
Capabilities:
Access the windows event log

Disassembly:
push 0xffffffffffffffff
push 0x10018f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.10014a90
push 0xf003f
push 0
push 0
mov dword [esp + 0x1c], 0
mov dword [esi], 0x10019c40
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push 0x30
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.1000af90
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x10008460
Capabilities:
Log keystrokes via input method manager

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 0x1000847f
mov ebp, 1
mov ecx, edi
shl ebp, cl
xor ebx, ebx
jmp 0x10008483
xor ebx, ebx
xor ebp, ebp
lea eax, [ebp*4 + 0x28]
push eax
call fcn.1001855c
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 0x10008577
push ebx
call dword [0x10019414]
mov edi, eax
push 1
push 1
push edi
call dword [sym.imp.WINMM.dll_mixerOpen]
push 0
push esi
push 0
mov ebx, eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
push edi
push 0
call dword [0x10019400]
push ebx
call dword [sym.imp.WINMM.dll_waveInUnprepareHeader]
mov eax, dword [esp + 0x10]
mov cl, byte [eax + 0xbc]
test cl, cl
je 0x10008577
test ebp, ebp
jle 0x10008577
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 0x10008533
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x10008c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
cmp ebx, ecx
push edi
je 0x10008d1d
mov eax, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x12c]
add eax, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add esi, ebx
mov dword [esp + 0x1c], eax
test ebp, 0x80000000
jne 0x10008cbb
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add eax, ebx
cmp edx, ecx
mov dword [esp + 0x18], ecx
jbe 0x10008cd9
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
mov edi, dword [ecx]
add edi, ebx
push edi
call fcn.100061c0
add esp, 4
push eax
push edi
call fcn.100024a0
and eax, 0x7fffffff
add esp, 0xc
cmp eax, ebp
je 0x10008ca6
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x10008c63
jmp 0x10008cd9
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax*2]
mov dx, word [ecx + ebx]
mov word [esp + 0x10], dx
jmp 0x10008cd9
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, ebp
add edx, ecx
and eax, 0xffff
cmp eax, edx
jae 0x10008d1d
cmp eax, ecx
jb 0x10008d1d
sub bp, cx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
lea edx, [ecx + eax*4]
mov eax, dword [edx + ebx]
add eax, ebx
je 0x10008d1f
cmp eax, esi
jb 0x10008d1f
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp eax, ecx
jae 0x10008d1f
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
mov esi, eax
je 0x10008d1d
lea edx, [esp + 0x20]
sub edx, eax
mov al, byte [esi]
inc ecx
mov byte [edx + esi], al
inc esi
cmp al, 0x2e
je 0x10008d2a
cmp byte [esi], 0
jne 0x10008d0d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test ecx, ecx
jle 0x10008d1d
mov byte [esp + ecx + 0x20], 0x64
inc ecx
mov al, 0x6c
lea edx, [esp + 0x20]
mov byte [esp + ecx + 0x20], al
inc ecx
push edx
mov byte [esp + ecx + 0x24], al
mov byte [esp + ecx + 0x25], 0
call fcn.10015a40
add esp, 4
lea eax, [esp + 0x20]
push eax
call fcn.100028a0
push 0
push esi
mov edi, eax
call fcn.100061c0
add esp, 4
push eax
push esi
call fcn.100024a0
and eax, 0x7fffffff
push eax
push edi
call fcn.10008c10
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x100092c0
Capabilities:
Clear file content

Disassembly:
sub esp, 0x490
or ecx, 0xffffffff
xor eax, eax
push esi
mov esi, dword [esp + 0x498]
push edi
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1000943e
mov ecx, 0xff
lea edi, [esp + 0x99]
mov byte [esp + 0x98], al
mov dword [esp + 0xc], 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push 0x10020824
push 0x80000000
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x1000943e
lea ecx, [esp + 0xc]
lea edx, [esp + 0x98]
push ecx
push edx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll__initterm]
lea edx, [esp + 0x98]
push edx
call dword [0x100192ec]
test eax, eax
je 0x1000943e
lea eax, [esp + 0x98]
push 0x10020820
push eax
call dword [0x10019350]
add esp, 8
test eax, eax
je 0x1000943e
push esi
push eax
call dword [0x100192e8]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4a0]
mov dword [esp + 0x54], 0x44
test eax, eax
mov dword [esp + 0x80], 1
mov word [esp + 0x84], ax
je 0x10009400
mov ecx, dword [0x10020818]
mov dl, byte [0x1002081c]
mov dword [esp + 0x20], ecx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], dl
mov esi, dword [0x100192c4]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x10020810
push eax
call esi
lea ecx, [esp + 0x20]
push 0x10020808
push ecx
call esi
lea edx, [esp + 0x20]
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x54]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0xb4]
push 0
push edx
push 0
call dword [0x10019180]
test eax, eax
je 0x1000943e
mov eax, dword [esp + 0x14]
mov esi, dword [0x100192d8]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
xor al, al
pop esi
add esp, 0x490
ret
Function at 0x1000a100
Capabilities:
Query service status

Disassembly:
sub esp, 0x11c
push ebx
push ebp
push esi
push 0x400
mov dword [esp + 0x20], ecx
push 0x40
mov dword [esp + 0x14], 0xff
call dword [0x100192dc]
mov esi, dword [esp + 0x130]
mov ebp, eax
push esi
lea eax, [ebp + 2]
mov byte [ebp], 0x8f
push eax
mov byte [ebp + 1], 0xa
call dword [0x100192e8]
push esi
call dword [0x100192ec]
lea ecx, [esp + 0x20]
mov ebx, eax
push ecx
mov ecx, dword [esp + 0x130]
push 0
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x38]
push edx
push eax
push 0
push ecx
add ebx, 3
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 0x103
je 0x1000a268
push edi
test eax, eax
jne 0x1000a227
push ebp
call dword [0x100192e0]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + edx + 2]
cmp ecx, eax
jbe 0x1000a1b0
lea edx, [ebx + 0x400]
push 0x42
push edx
push ebp
call dword [0x100192e4]
mov ebp, eax
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x2c]
mov eax, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push 1
lea eax, [esp + 0x34]
push 0
lea ebx, [ebx + ecx + 1]
mov ecx, dword [esp + 0x13c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
test eax, eax
jne 0x1000a226
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x34]
push eax
push edx
push eax
push eax
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000a21b
mov byte [ebx + ebp], 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__initterm]
inc ebx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x3c]
inc eax
push ecx
push edx
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x14c]
push eax
mov dword [esp + 0x30], 0xff
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, 0x103
jne 0x1000a183
pop edi
mov ecx, dword [esp + 0x1c]
push ebx
push ebp
call fcn.1000bf20
push ebp
call dword [0x10019300]
pop esi
pop ebp
pop ebx
add esp, 0x11c
ret 8

Function at 0x1000a710
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x10], str.Yijwu
mov dword [esp + 0x14], 0x10020888
mov dword [esp + 0x18], str.Wusmd_n_v_hmzbxfj
jbe 0x1000a73c
lea ebx, [eax - 1]
jmp 0x1000a73e
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea edi, [esp + ebx*4 + 0x10]
test eax, eax
jbe 0x1000a74f
dec eax
jmp 0x1000a754
mov eax, 2
cmp ebx, eax
ja 0x1000a77f
mov eax, dword [edi]
push eax
push 0
call ebp
mov esi, eax
test esi, esi
je 0x1000a775
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x20]
inc ebx
add edi, 4
jmp 0x1000a748
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret