joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41906f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x4190d9
cmp dword [ebp + 8], 0x100
jne 0x4190c8
cmp word [ebp + 0xc], 0xd
jne 0x4190c8
cmp byte [esi + 0x4f2], 0
je 0x4190af
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4190c8
cmp byte [esi + 0x4f3], 0
jne 0x4190c8
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4190c4
push edi
push edi
push edi
push str.return
push esi
call fcn.00409b74
xor eax, eax
jmp 0x4190dc
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x41945c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x419512
movzx eax, word [esi]
test ax, ax
je 0x419512
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x41949c
cmp ax, 0x5c
jne 0x41949e
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x419490
cmp edi, esi
je 0x4194e5
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00443a40
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x419522
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041945c
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00443cad
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00443c7c
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00435232
mov esp, ebp
pop ebp
ret
call fcn.0043587d
int3

Function at 0x419ae7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x419b63
cmp dword [edi + 4], 0xffffffff
jne 0x419b63
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x465e64
push esi
call fcn.00443c7c
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x419b35
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x419b35
mov eax, 0x2000000
jmp 0x419b68
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041c002
add esp, 0x10
test eax, eax
jne 0x419b53
mov eax, dword [ebp - 4]
jmp 0x419b68
push eax
call fcn.0041c70a
mov dword [edi], eax
mov eax, dword [0x46ec58]
pop ecx
jmp 0x419b68
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c10f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x41c143
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c13e
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41c16a
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x41c153
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00438d80
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x41c2dd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41c2eb
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x41c3aa
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
sub edi, 1
jne 0x41c303
pop edi
test esi, esi
je 0x41c3c6
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x455848]
inc edx
sub esi, 1
jne 0x41c3ae
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x41e72b
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x453045
call fcn.00435d41
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.0041eaba
call fcn.00407c97
push eax
lea ecx, [ebp - 0x94]
call fcn.0040b09b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00407c9d
mov ecx, eax
call fcn.0040b784
test al, al
je 0x41e841
push ebx
lea ecx, [ebp - 0x94]
call fcn.0040b284
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
lea ecx, [ebp - 0x94]
call fcn.0040b264
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x41e7b2
push str.Error_opening_file
jmp 0x41e922
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x41e8bb
cmp edi, 0x400000
ja 0x41e8cc
and dword [ebp - 0x2c8], 0
push edi
call fcn.0043572e
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x41e82a
push ebx
call fcn.0043527b
pop ecx
mov ecx, esi
call fcn.0041eaba
push 0
push str.Could_not_read_file
jmp 0x41e922
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.0041e96d
push dword [ebp - 0x2cc]
jmp 0x41e950
call fcn.00407c9d
push eax
lea ecx, [ebp - 0x94]
call fcn.0040b267
call fcn.00407d69
test al, al
je 0x41e862
call fcn.00407ca3
jmp 0x41e879
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0040b264
push eax
call fcn.00419b6f
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x41e88a
push eax
push str.Error_opening_zip_file
jmp 0x41e922
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.004195b0
add esp, 0x14
test eax, eax
je 0x41e8b1
push 0
push str.Could_not_find_ziped_file
jmp 0x41e922
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x41e8c4
push 0
push str.File_is_empty
jmp 0x41e922
cmp ebx, 0x400000
jbe 0x41e8d5
push 0
push str.File_too_large
jmp 0x41e922
push ebx
call fcn.0043572e
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.00419f2f
add esp, 0x18
test eax, eax
je 0x41e92d
cmp eax, 0x600
je 0x41e92d
push dword [ebp - 0x2c8]
call fcn.0043527b
pop ecx
call fcn.00407d69
test al, al
jne 0x41e91b
push edi
call fcn.0041940a
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.0041eae2
mov bl, al
jmp 0x41e958
call fcn.00407d69
test al, al
jne 0x41e93d
push edi
call fcn.0041940a
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.0041e96d
push edi
mov bl, al
call fcn.0043527b
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0040b17f
mov al, bl
call fcn.00435cfc
ret 8
Function at 0x424d4e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x424d72
cmp dword [esi + 8], edi
jge 0x424d6a
push esi
call fcn.00423044
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x424d9b
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x424d7e
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x424db8
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x424da6
xor eax, eax
jmp 0x424dae
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x424d9d
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x424ded
push str.zlib_corrupt
call fcn.00422eff
add esp, 4
jmp 0x424e2a
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x424dfd
push str.read_past_buffer
jmp 0x424de3
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x424e14
push edi
push esi
call fcn.00422f0e
pop ecx
pop ecx
test eax, eax
je 0x424e2a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00438d80
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x432e34
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x432ea1
cmp dword [esi + 0x10], 0
je 0x432ea1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00435db0
mov ebx, esp
test ebx, ebx
je 0x432ea1
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c4
call fcn.0040b21d
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00409b74
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435232
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10002d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
lea edx, [ebp - 0x1c]
push 1
call fcn.10002920
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x10002e5e
mov cx, word [0x100151c0]
movq xmm0, qword [0x100151b8]
movq qword [ebp - 0x14], xmm0
mov word [ebp - 0xc], cx
test ch, ch
je 0x10002d76
xor ebx, ebx
nop dword [eax]
mov eax, 0xcccccccd
mul ebx
mov al, bl
shr edx, 3
mov cl, dl
shl dl, 2
add cl, dl
add cl, cl
sub al, cl
add al, 0x37
xor byte [ebp + ebx - 0x14], al
inc ebx
cmp ebx, 0xa
jl 0x10002d50
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push edi
push eax
push 0x51
mov edx, 1
call section..text
add esp, 4
call eax
push eax
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.100035b0
add esp, 8
mov edx, 1
push esi
push 0x2e
call section..text
add esp, 4
call eax
cmp eax, 0xffffffff
jne 0x10002dc7
push 0x30
mov edx, 1
call section..text
add esp, 4
call eax
jmp 0x10002ddd
test al, 0x10
jne 0x10002ddd
push esi
push 0x19
mov edx, 1
call section..text
add esp, 4
call eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
push 0xc
mov edx, 1
call section..text
add esp, 4
call eax
mov esi, eax
test esi, esi
je 0x10002e5e
cmp esi, 0xffffffff
je 0x10002e5e
push 0
lea eax, [ebp - 8]
mov edx, 1
push eax
push edi
push ebx
push esi
push 0x9e
call section..text
add esp, 4
call eax
test eax, eax
je 0x10002e5e
cmp edi, dword [ebp - 8]
jne 0x10002e5e
push esi
push 4
mov edx, 1
call section..text
add esp, 4
call eax
test eax, eax
je 0x10002e5e
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100054f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100054f7
mov esp, ebp
pop ebp
ret
Function at 0x10002e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movups xmm0, xmmword [0x10015228]
mov ax, word [0x10015240]
xor ecx, ecx
cmp dword [0x10017bfc], 2
movups xmmword [ebp - 0x1c], xmm0
mov word [ebp - 4], ax
movq xmm0, qword [0x10015238]
movq qword [ebp - 0xc], xmm0
jl 0x10002fa1
movaps xmm2, xmmword [0x10015810]
mov eax, 2
movaps xmm3, xmmword [0x10015890]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x10015228
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015830]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015820]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x10015840]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x1c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015830]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x14]
paddw xmm1, xmmword [0x10015840]
pxor xmm1, xmm0
movq qword [ebp - 0x14], xmm1
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
lea eax, [eax + eax*4]
add eax, eax
sub edx, eax
add edx, 0x31
xor word [ebp + ecx*2 - 0x1c], dx
inc ecx
cmp ecx, 0xd
jl 0x10002fa1
push 0
push 0x40000080
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x1c]
mov edx, 1
push eax
push 0xc
call section..text
add esp, 4
call eax
test eax, eax
je 0x10002ff9
cmp eax, 0xffffffff
jne 0x10002ffb
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003000
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10015c70
push 0x10006130
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x10017004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0xa5c], esi
push esi
push 2
push 0x12
lea edx, [esi + 1]
call section..text
add esp, 4
call eax
mov ebx, eax
mov dword [ebp - 0xa64], ebx
call fcn.10002e80
mov edi, eax
mov dword [ebp - 0xa58], edi
test edi, edi
je 0x1000325c
cmp ebx, 0xffffffff
je 0x10003248
mov dword [ebp - 0xa54], 0x22c
lea eax, [ebp - 0xa54]
push eax
push ebx
push 0x64
mov edx, 1
call section..text
add esp, 4
call eax
test eax, eax
je 0x10003236
nop dword [eax]
nop dword [eax + eax]
cmp dword [0x100182b0], 0
jne 0x10003230
mov dword [ebp - 0xa60], 0
xor ebx, ebx
mov cx, word [ebp - 0xa30]
lea edi, [ebp - 0xa30]
mov eax, dword [0x100182ac]
test cx, cx
je 0x1000310f
movzx edx, cx
movzx esi, dx
lea ecx, [edx - 0x61]
lea edx, [esi + 0x20]
cmp cx, 0x19
cmova esi, edx
imul ecx, esi, 0x1000193
xor eax, ecx
lea edi, [edi + 2]
movzx ecx, word [edi]
mov edx, ecx
test cx, cx
jne 0x100030e3
mov cx, word [ebp - 0xa30]
shr eax, 2
cmp eax, dword [ebx + 0x10014ef0]
je 0x1000312d
add ebx, 4
cmp ebx, 0x194
jb 0x100030d0
mov eax, dword [ebp - 0xa60]
jmp 0x10003132
mov eax, 1
test eax, eax
je 0x10003203
mov dword [ebp - 0x828], 1
mov eax, dword [ebp - 0xa4c]
mov dword [ebp - 0x824], eax
push eax
push 0
push 0x1000
push 0x5e
mov edx, 1
call section..text
add esp, 4
call eax
mov esi, eax
test esi, esi
je 0x10003203
lea eax, [ebp - 0x20]
push eax
push esi
push 0x2d
mov edx, 1
call section..text
add esp, 4
call eax
test eax, eax
je 0x10003203
cmp dword [ebp - 0x20], 0x103
jne 0x10003203
push esi
push 4
mov edx, 1
call section..text
add esp, 4
call eax
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push 0x808
lea eax, [ebp - 0x828]
push eax
push 0x22e010
mov edi, dword [ebp - 0xa58]
push edi
push 0x1d
mov edx, 1
call section..text
add esp, 4
call eax
test eax, eax
je 0x100031ea
inc dword [ebp - 0xa5c]
mov dword [ebp - 4], 0xfffffffe
jmp 0x10003209
mov edi, dword [ebp - 0xa58]
lea eax, [ebp - 0xa54]
push eax
mov ebx, dword [ebp - 0xa64]
push ebx
push 0x66
mov edx, 1
call section..text
add esp, 4
call eax
test eax, eax
jne 0x100030b0
mov esi, dword [ebp - 0xa5c]
push ebx
push 4
mov edx, 1
call section..text
add esp, 4
call eax
push edi
push 4
mov edx, 1
call section..text
add esp, 4
call eax
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100054f7
mov esp, ebp
pop ebp
ret
Function at 0x100035b0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov edx, 1
push 0x36
mov dword [ebp - 0x18], ecx
call section..text
add esp, 4
call eax
push 0x100
mov ebx, eax
xor edx, edx
push 0
push ebx
push 0x7b
mov dword [ebp - 0x1c], ebx
call section..text
add esp, 4
call eax
push 0x100
push 0
push ebx
push 0x7b
xor edx, edx
mov dword [ebp - 4], eax
call section..text
add esp, 4
call eax
xor edi, edi
mov ebx, eax
mov dword [ebp - 0x14], edi
xor ecx, ecx
mov edi, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
sub ebx, edi
mov eax, ecx
lea esi, [ecx + edi]
xor edx, edx
mov edi, dword [ebp - 0xc]
div dword [ebp + 8]
mov byte [ebx + esi], cl
inc ecx
mov al, byte [edx + edi]
mov edi, dword [ebp - 4]
mov byte [esi], al
cmp ecx, 0x100
jl 0x10003615
mov ebx, dword [ebp - 0x10]
mov eax, edi
mov edi, dword [ebp - 0x14]
sub eax, ebx
mov esi, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x100
nop dword [eax]
mov dl, byte [esi]
movzx eax, byte [eax + esi]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x1000366d
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + ebx]
mov byte [edi + ebx], dl
mov byte [esi], al
inc esi
sub dword [ebp - 8], 1
mov eax, dword [ebp - 0x10]
jne 0x10003650
xor edx, edx
xor esi, esi
cmp dword [ebp + 0xc], edx
jbe 0x100036de
xor edi, edi
nop word [eax + eax]
inc edi
and edi, 0x800000ff
jns 0x100036a1
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [edi + ebx]
movzx eax, cl
add edx, eax
and edx, 0x800000ff
jns 0x100036b9
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [edx + ebx]
mov byte [edx + ebx], cl
mov byte [edi + ebx], al
movzx ecx, al
movzx eax, byte [edx + ebx]
add ecx, eax
movzx eax, cl
mov ecx, dword [ebp - 0x18]
movzx eax, byte [eax + ebx]
xor byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x10003690
mov eax, dword [ebp - 4]
xor edx, edx
mov esi, dword [ebp - 0x1c]
push eax
push 0
push esi
push 0x7c
call section..text
add esp, 4
call eax
push ebx
push 0
push esi
push 0x7c
xor edx, edx
call section..text
add esp, 4
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003710
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x36
mov edx, 1
call section..text
add esp, 4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10003866
push 0xa
movzx ecx, di
mov edx, 1
push ecx
push esi
push 0x21
call section..text
add esp, 4
call eax
mov edi, eax
test edi, edi
je 0x10003866
push edi
push esi
push 0x48
mov edx, 1
call section..text
add esp, 4
call eax
mov ebx, eax
test ebx, ebx
je 0x10003866
push edi
push esi
push 0x86
mov edx, 1
call section..text
add esp, 4
call eax
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
je 0x10003866
push ebx
push 0x4b
mov edx, 1
call section..text
add esp, 4
call eax
mov dword [ebp - 8], eax
test eax, eax
je 0x10003866
push dword [edi]
xor edx, edx
push 0
push dword [ebp - 4]
push 0x7b
call section..text
add esp, 4
call eax
mov esi, eax
test esi, esi
je 0x10003866
push dword [edi]
xor edx, edx
push dword [ebp - 8]
push esi
push 0x7f
call section..text
add esp, 4
call eax
push ebx
push 0x24
mov edx, 1
call section..text
add esp, 4
call eax
mov ax, word [0x10015260]
movq xmm0, qword [0x10015258]
movq qword [ebp - 0x14], xmm0
mov word [ebp - 0xc], ax
test ah, ah
je 0x10003843
xor ebx, ebx
nop word [eax + eax]
mov eax, 0xcccccccd
mul ebx
mov al, bl
shr edx, 3
mov cl, dl
shl dl, 2
add cl, dl
add cl, cl
sub al, cl
add al, 0x31
xor byte [ebp + ebx - 0x14], al
inc ebx
cmp ebx, 0xa
jl 0x10003820
push dword [edi]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.100035b0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005330
Capabilities:
Encode data using xor
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x1001562e], 0
xorps xmm0, xmm0
mov eax, dword [0x1001562c]
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [0x10015614]
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [0x10015624]
movq qword [ebp - 0x20], xmm0
je 0x100054aa
xor ecx, ecx
cmp dword [0x10017bfc], 2
jl 0x10005476
movaps xmm2, xmmword [0x10015810]
mov eax, 2
movaps xmm3, xmmword [0x10015890]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x10015614
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015830]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015820]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
paddw xmm1, xmmword [0x10015850]
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x30], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015830]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [ebp - 0x28]
paddw xmm1, xmmword [0x10015850]
pxor xmm1, xmm0
movq qword [ebp - 0x28], xmm1
push esi
nop word [eax + eax]
mov eax, 0x66666667
imul ecx
mov eax, 5
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
sub eax, esi
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2]
xor word [ebp + ecx*2 - 0x30], ax
inc ecx
cmp ecx, 0xe
jl 0x10005480
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], 0x10005110
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
je 0x100054de
push str._UpdateServeice__started
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100054f7
mov esp, ebp
pop ebp
ret
push str._UpdateServeice__failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100054f7
mov esp, ebp
pop ebp
ret