joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6664c0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [edi], eax
push eax
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
cmp esi, 0x8007007a
je 0x666525
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea esi, [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
shr eax, 1
mov ecx, esi
push eax
call fcn.0058a270
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x66658b
push 0
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x66659e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x666511
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x66658d
add ecx, 0xfffffffe
jne 0x666582
ud2
mov dword [ebp - 0x1c], eax
push eax
call fcn.0054fc10
add esp, 4
jmp 0x666511
mov eax, dword [ebp - 0x14]
test al, 1
jne 0x6665ce
mov esi, dword [ebp + 0x14]
shr eax, 1
lea edi, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00478170
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov edi, edx
sub edi, eax
sar edi, 1
mov ecx, esi
push edi
push edx
push eax
call fcn.0058a2d0
xor esi, esi
jmp 0x666578
int3

Function at 0x6665e0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov esi, dword [0x754040]
xor esi, ebp
mov dword [ebp - 0xc], esi
mov esi, 0x20000000
or esi, dword [ebp + 0xc]
lea edi, [ebp - 0x10]
mov dword [edi], 4
push 0
push edi
push edx
push ecx
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor esi, esi
test eax, eax
jne 0x66663c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00550b46
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret
Function at 0x67b3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x67b407
call fcn.005d7850
mov ebx, eax
test edi, edi
cmove edi, ebx
push ebx
call fcn.00496d70
add esp, 4
lea ecx, [eax*2 + 2]
cmp ecx, esi
ja 0x67b440
mov dword [ebp - 0x68], edi
lea edx, [eax + eax]
mov edi, esi
mov esi, edx
not esi
lea ecx, [edi + esi]
dec ecx
cmp ecx, dword [ebp + 0x14]
jae 0x67b46b
push 0x6a
push 0x6ef77a
push 0x72
jmp 0x67b449
push 0x64
push 0x6ef77a
push 0x7e
push 0
push 4
call fcn.00643740
add esp, 0x14
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [edi - 1]
mov dword [ebp - 0x60], ecx
cmp ecx, edx
ja 0x67b488
push 0x6f
jmp 0x67b442
xor ebx, ebx
xor edi, edi
push ebx
call fcn.0050c560
add esp, 4
jmp 0x67b457
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [ebp - 0x5c], eax
add eax, edi
inc eax
xor ecx, ecx
push ecx
push ebx
push ecx
mov dword [ebp - 0x58], eax
push eax
push edx
push dword [ebp + 0x18]
call fcn.00496d80
add esp, 0x18
test eax, eax
je 0x67b479
mov ebx, dword [ebp - 0x60]
mov ecx, dword [ebp + 0x14]
sub ebx, ecx
add esi, ebx
mov edx, dword [ebp - 0x5c]
je 0x67b4d7
mov eax, dword [ebp - 0x58]
add eax, edx
push esi
push 0
push eax
mov esi, edx
call fcn.00553af0
mov edx, esi
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov eax, edx
not eax
add ebx, dword [ebp - 0x58]
mov byte [eax + ebx], 1
lea eax, [edi + 1]
mov dword [ebp - 0x54], eax
test ecx, ecx
mov esi, edx
je 0x67b509
mov eax, edi
add eax, esi
add eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, esi
push ecx
push dword [ebp + 0x10]
push eax
call fcn.00553570
mov esi, dword [ebp - 0x5c]
add esp, 0xc
push esi
push dword [ebp - 0x54]
call fcn.0050d5a0
add esp, 8
test eax, eax
je 0x67b479
mov edi, dword [ebp - 0x60]
sub edi, esi
push edi
call fcn.0050c4c0
add esp, 4
test eax, eax
je 0x67b479
mov ebx, eax
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x54]
mov dword [ebp - 0x64], edi
push edi
push eax
call fcn.00498a80
add esp, 0x14
test eax, eax
je 0x67b47b
cmp dword [ebp - 0x60], esi
mov esi, dword [ebp - 0x58]
je 0x67b56f
mov eax, dword [ebp - 0x64]
cmp eax, 1
adc eax, 0
xor ecx, ecx
mov dl, byte [ebx + ecx]
xor byte [esi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x67b564
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x50]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push esi
mov esi, dword [ebp - 0x5c]
push esi
push eax
call fcn.00498a80
add esp, 0x14
test eax, eax
je 0x67b47b
xor edi, edi
inc edi
test esi, esi
je 0x67b47d
mov edx, esi
xor eax, eax
mov esi, dword [ebp - 0x54]
mov cl, byte [ebp + eax - 0x50]
xor byte [esi + eax], cl
inc eax
cmp edx, eax
jne 0x67b5b7
jmp 0x67b47d
Function at 0x6809b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x76c76c]
mov ecx, dword [0x758d88]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x680a05
cmp edi, esi
je 0x680a01
xor eax, eax
dec eax
mov cl, byte [edi]
xor cl, al
movzx ecx, cl
shr eax, 8
xor eax, dword [ecx*4 + 0x76c36c]
inc edi
cmp edi, esi
jne 0x6809e1
not eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x6809f9
push 0x76c76c
call fcn.0054fc5d
add esp, 4
cmp dword [0x76c76c], 0xffffffff
jne 0x6809da
push 0x400
push 0xff
push 0x76c36c
call fcn.00553af0
add esp, 0xc
xor eax, eax
mov ecx, eax
shr eax, 1
mov edx, ecx
mov dword [ebp - 0x10], ecx
and edx, 1
neg edx
mov ebx, 0xedb88320
and edx, ebx
xor edx, eax
mov eax, edx
shr eax, 1
mov ebx, ecx
shl ebx, 0x1e
sar ebx, 0x1f
mov ecx, 0xedb88320
and ebx, ecx
xor ebx, eax
mov ecx, dword [ebp - 0x10]
shl ecx, 0x1d
sar ecx, 0x1f
and ecx, 0x76dc419
mov eax, dword [ebp - 0x10]
shl eax, 0x1c
sar eax, 0x1f
and eax, 0xedb8832
xor eax, ecx
mov ecx, dword [ebp - 0x10]
shl ecx, 0x1b
sar ecx, 0x1f
and ecx, 0x1db71064
xor ecx, eax
mov eax, dword [ebp - 0x10]
shl eax, 0x1a
sar eax, 0x1f
and eax, 0x3b6e20c8
xor eax, ecx
mov ecx, ebx
shr ecx, 6
xor eax, ecx
shl edx, 0x1a
sar edx, 0x1f
and edx, 0x76dc4190
xor edx, eax
shl ebx, 0x1a
sar ebx, 0x1f
mov eax, 0xedb88320
and ebx, eax
xor ebx, edx
mov ecx, dword [ebp - 0x10]
mov dword [ecx*4 + 0x76c36c], ebx
inc ecx
mov eax, ecx
cmp ecx, 0x100
jne 0x680a34
push 0x76c76c
call fcn.0054fcd7
add esp, 4
jmp 0x6809da
Function at 0x68c550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov dword [ecx], fcn.0068ac30
mov eax, dword [ecx + 0x84]
test eax, eax
je 0x68c589
mov ecx, dword [esi + 0x88]
cmp ecx, eax
je 0x68c57a
add ecx, 0xfffffffe
jne 0x68c56c
jmp 0x68c61c
mov dword [esi + 0x88], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x78]
test eax, eax
je 0x68c5aa
mov ecx, dword [esi + 0x7c]
cmp ecx, eax
je 0x68c59e
add ecx, 0xfffffffe
jne 0x68c593
jmp 0x68c61c
mov dword [esi + 0x7c], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x68c5c9
mov ecx, dword [esi + 0x70]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x68c61c
mov dword [esi + 0x70], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x60]
test eax, eax
je 0x68c5e8
mov ecx, dword [esi + 0x64]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x68c61c
mov dword [esi + 0x64], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x50]
test eax, eax
je 0x68c609
mov ecx, dword [esi + 0x54]
cmp ecx, eax
je 0x68c5fd
add ecx, 0xfffffffe
jne 0x68c5f2
jmp 0x68c61c
mov dword [esi + 0x54], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x68c62a
mov ecx, dword [esi + 0x48]
cmp ecx, eax
je 0x68c61e
add ecx, 0xfffffffe
jne 0x68c613
ud2
mov dword [esi + 0x48], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x68c649
mov ecx, dword [esi + 0x3c]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x68c61c
mov dword [esi + 0x3c], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x68c66a
mov ecx, dword [esi + 0x2c]
cmp ecx, eax
je 0x68c65e
add ecx, 0xfffffffe
jne 0x68c653
jmp 0x68c61c
mov dword [esi + 0x2c], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x68c68b
mov ecx, dword [esi + 0x20]
cmp ecx, eax
je 0x68c67f
add ecx, 0xfffffffe
jne 0x68c674
jmp 0x68c61c
mov dword [esi + 0x20], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x68c6ae
mov ecx, dword [esi + 0x14]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
ja 0x68c61c
mov dword [esi + 0x14], eax
push eax
call fcn.0054fc10
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x68c6d2
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x68c6c6
add ecx, 0xfffffffc
jne 0x68c6b8
jmp 0x68c61c
mov dword [esi + 8], eax
push eax
call fcn.0054fc10
add esp, 4
pop esi
pop ebp
ret
Function at 0x691e60
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xe4
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
push esi
push 0x20
push dword [ebp + 0x10]
call fcn.005d7a60
add esp, 0xc
and byte [esi], 0xf8
mov al, byte [esi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea edi, [ebp - 0xf0]
push 0xa0
push 0xff
push edi
call fcn.00553af0
add esp, 0xc
push 0x6f2f68
push esi
push edi
call fcn.00538370
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, edi
call fcn.00695620
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [ebx + 0x10], xmm1
movups xmmword [ebx], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [ebx + 0x20], xmm0
movups xmmword [ebx + 0x30], xmm1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
add esp, 0xe4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x6a6bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 4]
pop ebp
jmp fcn.006b3540

Function at 0x6aff10
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, dword [ecx]
mov eax, esi
and eax, 0xf800d000
xor eax, 0xf0008000
mov edi, esi
not edi
test edi, 0x3c00000
setne bl
mov edi, edx
and edi, 1
or edi, eax
sete ah
lea edi, [edx + 0x100000]
cmp edi, 0x200000
setb al
and al, bl
and al, ah
cmp al, 1
jne 0x6aff9e
mov edi, edx
shl edi, 6
and edi, 0x4000000
mov ebx, edx
shl ebx, 4
and ebx, 0x3f0000
or ebx, edi
mov edi, edx
shr edi, 5
and edi, 0x2000
or edi, ebx
mov ebx, edx
shr edx, 8
and edx, 0x800
or edx, edi
shr ebx, 1
and ebx, 0x7ff
or edx, ebx
and esi, 0xf3c08000
or edx, esi
mov dword [ecx], edx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x6affb0
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
test al, 1
jne 0x6affe1
mov ecx, dword [ebp + 0xc]
mov edx, ecx
and edx, 0xf800d000
cmp edx, 0xf0008000
setne dl
mov esi, ecx
not esi
test esi, 0x3c00000
sete dh
or dh, dl
je 0x6affe7
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov edx, ecx
shr edx, 4
and edx, 0x3f000
mov esi, ecx
and esi, 0x7ff
lea edx, [edx + esi*2]
mov esi, ecx
shr esi, 6
and esi, 0x100000
mov edi, ecx
shl edi, 8
and edi, 0x80000
or edi, esi
shl ecx, 5
and ecx, 0x40000
or ecx, edi
or ecx, edx
shl ecx, 0xb
sar ecx, 0xb
add eax, ecx
add eax, 4
mov ecx, dword [ebp + 0x10]
and eax, 0xfffffffe
mov dword [ecx], eax
mov al, 1
jmp 0x6affe3
Function at 0x404a40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040419f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404154
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040419f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00404154
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040418f
push 0x50
mov edx, 0xcca580bd
cli
invalid
Function at 0x406750
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.004099d0
test eax, eax
je 0x406782
mov eax, 1
jmp 0x406827
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4067a1
xor eax, eax
jmp 0x406827
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x21c]
add edx, 0x230
push edx
mov eax, dword [ebp - 0x21c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40680e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x406827
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret

Function at 0x406840
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004099d0
test eax, eax
jne 0x40685f
mov eax, 1
jmp 0x4068ea
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40687b
xor eax, eax
jmp 0x4068ea
push 0x10020
mov eax, dword [ebp - 0x2c]
add eax, 0x230
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4068aa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x4068ea
lea eax, [ebp - 0x28]
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], 0
je 0x4068e8
mov eax, 1
jmp 0x4068ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x407668
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412018]
jne 0x407672
repz ret
jmp fcn.00407bfa
Function at 0x4081a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x430], ax
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x438], 0
push 0x105
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x438]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x434]
push ecx
push 0x105
lea edx, [ebp - 0x430]
push edx
push 0x40d928
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x408266
push 0xa
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x434]
push ecx
call dword [sym.imp.MSVCR90.dll__itow_s]
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x408288
push str.thsnYaViMRAeBoda
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.004063f0
cmp dword [ebp + 0xc], 0
je 0x4082a0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x104
mov edx, dword [ebp + 8]
push edx
call fcn.004063f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x409660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], vtable.CArmReport.0
push 0x104
push 0
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 4
push edx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4096ab
jmp 0x4096d7
push str.AdobeARM_
push 0x104
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.004063f0
push str.ArmReport.ini
push 0x104
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.004063f0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x409810
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40983c
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409843
mov eax, 2
jmp 0x4098b3
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4098b1
mov byte [ebp - 9], 0
lea eax, [ebp - 9]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_Report
mov ecx, dword [ebp - 0x10]
call fcn.004096e0
push 4
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4098b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov byte [ebp - 0xa], 0
lea edx, [ebp - 0xa]
push edx
mov eax, dword [ebp - 8]
push eax
push str.MoveEx_Report
mov ecx, dword [ebp - 0x10]
call fcn.004096e0
mov eax, dword [ebp - 8]
jmp 0x4098b3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x409900
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x100
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR90.dll_vswprintf_s]
add esp, 0x10
mov dword [ebp - 0x210], 0
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x454], 0
je 0x4099a3
mov eax, dword [ebp + 8]
add eax, 0x230
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4099a1
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4099b3
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCR90.dll__putws]
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00407668
mov esp, ebp
pop ebp
ret
Function at 0x401fd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [0x48a6a8]
xor ecx, ecx
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x40204a
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040299f
lea ecx, [esp + 0x14]
call fcn.00401e05
cmp eax, 0x8aafdc01
je 0x402061
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402a2c
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x10]
jb 0x402011
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406c76
mov esp, ebp
pop ebp
ret
mov edx, str.QwruxAA
call fcn.00402d6b
push eax
call fcn.00402fed
mov eax, dword [ebx + 0x24]
pop ecx
mov ecx, dword [esp + 0xc]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402a2c
jmp 0x40204c