joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d3c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
call fcn.00409072
mov ebx, dword [ebp + 0x10]
mov eax, ebx
pop ecx
pop ecx
mov ecx, ebx
and ecx, 1
shl ecx, 4
mov edx, ecx
or edx, 6
and al, 2
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 4]
cmove edx, ecx
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], edx
call fcn.00409072
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push dword [ebp - 4]
mov esi, eax
mov dword [ebp - 0xc], esi
call fcn.004246b2
pop ecx
cmp esi, 0xffffffff
jne 0x41d42f
xor eax, eax
jmp 0x41d4e4
and ebx, 4
mov ecx, dword [ebp + 0x10]
xor eax, eax
and ecx, dword [ebp - 0x25c]
cmp eax, ecx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x41d44e
xor eax, eax
cmp eax, ecx
sbb eax, eax
inc eax
test eax, eax
je 0x41d4b6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00409013
mov esi, dword [ebp - 8]
xor edx, edx
pop ecx
pop ecx
mov al, byte [esi]
test al, al
setne dl
cmp al, 0x2e
jne 0x41d48b
mov cl, byte [esi + 1]
xor eax, eax
test cl, cl
cmovne eax, edx
mov edx, eax
cmp cl, 0x2e
jne 0x41d48b
cmp byte [esi + 2], 0
je 0x41d4a9
test edx, edx
je 0x41d4a9
push esi
push dword [ebp + 0xc]
inc edi
call fcn.0040a946
push 0x43fa08
push dword [ebp + 0xc]
call fcn.0040a946
add esp, 0x10
lea eax, [ebp - 8]
push eax
call fcn.004090cc
mov esi, dword [ebp - 0xc]
pop ecx
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41d432
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x41d432
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41d627
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
call fcn.00409072
push eax
call fcn.0042bf0b
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.004090cc
add esp, 0x10
mov eax, esi
pop esi
leave
ret

Function at 0x42bf00
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bd9b

Function at 0x4349ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043486d
Function at 0xfdd5b4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push dword [esp + 0x3c]
push esi
push ebx
push edx
push ecx
call fcn.00fd4535
mov dword [esp + 0x34], 0x1e90b2
lea edi, [esp + 0x38]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x24], 0x6b1ce7
shl dword [esp + 0x24], 0xc
or dword [esp + 0x24], 0x7fccfffe
xor dword [esp + 0x24], 0xffcc987e
mov dword [esp + 0x28], 0xb9ddcb
add dword [esp + 0x28], 0xfffffdf0
shr dword [esp + 0x28], 7
xor dword [esp + 0x28], 0x2a4b6
mov dword [esp + 0x4c], 0x97c650
add dword [esp + 0x4c], 0xffff224d
shl dword [esp + 0x4c], 7
shr dword [esp + 0x4c], 4
xor dword [esp + 0x4c], 0x4b7768e
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
xor edx, eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov dword [esp + 0x30], edx
and eax, 0xfffffffc
mov ecx, edx
add eax, 4
mov edi, edx
and cl, 3
cmovne edi, eax
mov eax, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov eax, dword [esp + 0x14]
push edi
call fcn.00fdf79b
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0xfdd6ba
shr edi, 2
xor eax, eax
lea ecx, [esi + edi*4]
xor edi, edi
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp esi, ecx
cmova edx, eax
test edx, edx
je 0xfdd6b0
mov ecx, ebp
sub ecx, esi
mov eax, dword [esi]
xor eax, dword [esp + 0x18]
inc edi
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp edi, edx
jb 0xfdd69f
test ebx, ebx
je 0xfdd6ba
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0xfdf672
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [esp + 0x28]
push edx
push ecx
call fcn.00fd4535
mov dword [esp + 0x1c], 0x4b97a
lea edi, [edx + 4]
xor dword [esp + 0x1c], 0x300d6bf2
shl dword [esp + 0x1c], 1
add dword [esp + 0x1c], 0xffff38ce
xor dword [esp + 0x1c], 0x601ae9bc
mov dword [esp + 0x24], 0x9112ea
add dword [esp + 0x24], 0xffff3a73
xor dword [esp + 0x24], 0x9f861f
mov dword [esp + 0x20], 0x1fceca
add dword [esp + 0x20], 0xe10a
xor dword [esp + 0x20], 0xde927f57
xor dword [esp + 0x20], 0xdeb8bf3a
mov eax, dword [edx]
mov ebp, dword [edi]
add edi, 4
xor ebp, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
lea esi, [ebp + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
add esp, 8
mov eax, dword [esp + 0x14]
lea eax, [esi + esi]
push eax
call fcn.00fdf79b
mov ebx, eax
mov dword [esp + 0x20], ebx
pop ecx
pop ecx
test ebx, ebx
je 0xfdf791
shr esi, 2
xor eax, eax
lea ecx, [edi + esi*4]
mov esi, ebx
mov edx, ecx
sub edx, edi
add edx, 3
shr edx, 2
cmp edi, ecx
cmova edx, eax
test edx, edx
je 0xfdf78b
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp ebp, edx
jb 0xfdf74e
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
xor eax, eax
mov word [ebx + ebp*2], ax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0xfe5ea8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
push ebx
push edx
push ecx
call fcn.00fd4535
mov dword [esp + 0x34], 0x643904
lea edi, [esp + 0x38]
xor eax, eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x18], 0x2237e7
shr dword [esp + 0x18], 0x10
xor dword [esp + 0x18], 0x23
mov dword [esp + 0x1c], 0x2def3a
or dword [esp + 0x1c], 0xe683bfef
xor dword [esp + 0x1c], 0xe6a82d75
mov dword [esp + 0x3c], 0x7fb4d8
xor dword [esp + 0x3c], 0xee952490
xor dword [esp + 0x3c], 0xd42bb050
or dword [esp + 0x3c], 0xdc0c79a9
xor dword [esp + 0x3c], 0xfec960b4
mov dword [esp + 0x14], 0xa4b368
add dword [esp + 0x14], 0x20da
add dword [esp + 0x14], 0x913
xor dword [esp + 0x14], 0xa7d35b
mov dword [esp + 0x24], 0x2b401a
imul eax, dword [esp + 0x24], 0x3f
mov dword [esp + 0x24], eax
xor dword [esp + 0x24], 0xaa8a3e2
mov dword [esp + 0x10], 0xa147c6
shl dword [esp + 0x10], 9
or dword [esp + 0x10], 0x8e2d7094
xor dword [esp + 0x10], 0xcea808f5
mov dword [esp + 0x20], 0x9c7317
add dword [esp + 0x20], 0xffff154d
xor dword [esp + 0x20], 0x9cbbcc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x18]
add eax, ebx
mov edx, dword [eax + ecx*8 + 0x78]
test edx, edx
je 0xfe6019
cmp dword [eax + ecx*8 + 0x7c], 0
je 0xfe6019
lea esi, [edx + ebx]
jmp 0xfe6012
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ebx]
call fcn.00ff02dd
pop ecx
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0xfe6024
mov edi, dword [esi]
mov ebp, dword [esi + 0x10]
add edi, ebx
add ebp, ebx
jmp 0xfe6009
jns 0xfe5fd9
movzx eax, ax
jmp 0xfe5fde
add eax, 2
add eax, ebx
push ecx
push dword [esp + 0x24]
push eax
push dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
call fcn.00fe9e4e
add esp, 0x10
test eax, eax
je 0xfe6024
mov ecx, dword [esp + 0x18]
add edi, 4
mov dword [ebp], eax
add ebp, 4
mov eax, dword [edi]
test eax, eax
jne 0xfe5fd2
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0xfe5fac
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0xfe601c
Function at 0xfe65b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
push ebx
push ebp
push edx
push ecx
call fcn.00fd4535
and dword [esp + 0x28], 0
add esp, 0x14
and dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x78f83b
mov dword [esp + 0x20], 0x33d138
imul eax, dword [esp + 0x20], 0x7c
mov dword [esp + 0x20], eax
add dword [esp + 0x20], 0xffff78a0
add dword [esp + 0x20], 0xffff50ec
xor dword [esp + 0x20], 0x191820a9
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x20]
add ecx, ebx
sub ebp, dword [ecx + 0x34]
mov edx, dword [ecx + eax*8 + 0x78]
mov dword [esp + 0x20], ebp
add edx, ebx
mov ebp, dword [ecx + eax*8 + 0x7c]
add ebp, edx
mov dword [esp + 0xc], ebp
cmp edx, ebp
jae 0xfe667d
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0xfe6674
mov ebp, dword [esp + 0x28]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x10], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x10]
jne 0xfe6669
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0xfe6644
mov ebp, dword [esp + 0x14]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0xfe6634
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0xfeca06
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push ebx
call fcn.00fd4535
mov dword [ebp - 4], 0xd2534f
add esp, 0x14
or dword [ebp - 4], 0xf64f6668
xor dword [ebp - 4], 0xf6df776f
mov dword [ebp - 8], 0xfe3404
or dword [ebp - 8], 0xf7b521d6
xor dword [ebp - 8], 0xf7ff35d0
mov dword [ebp - 8], 0x71160c
add dword [ebp - 8], 0xe2f3
xor dword [ebp - 8], 0x6395b47
xor dword [ebp - 8], 0x648a3a8
cmp byte [ebx], 0
je 0xfecac9
push esi
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 0xfe3404
or dword [ebp - 8], 0xf7b521d6
xor dword [ebp - 8], 0xf7ff35d0
mov cl, byte [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0x71160c
add dword [ebp - 8], 0xe2f3
xor dword [ebp - 8], 0x6395b47
xor dword [ebp - 8], 0x648a3a8
shl esi, cl
mov cl, byte [ebp - 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0xfeca6e
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xfee875
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push dword [esp + 0x2c]
push edx
push ecx
call fcn.00fd4535
and dword [esp + 0x30], 0
lea edi, [ecx + 4]
mov dword [esp + 0x2c], 0x2b26d7
xor edx, edx
mov dword [esp + 0x1c], 0xc1bec0
mov eax, dword [esp + 0x1c]
push 0x67
pop esi
div esi
push 0x1b
mov dword [esp + 0x20], eax
xor edx, edx
or dword [esp + 0x20], 0x7fd2f7f9
xor dword [esp + 0x20], 0x7fd7069a
mov dword [esp + 0x24], 0xefd37c
or dword [esp + 0x24], 0x9df38dfb
shr dword [esp + 0x24], 3
xor dword [esp + 0x24], 0x13ba49a0
mov dword [esp + 0x1c], 0xe72387
shl dword [esp + 0x1c], 2
shl dword [esp + 0x1c], 1
mov eax, dword [esp + 0x1c]
pop esi
div esi
mov dword [esp + 0x18], eax
xor dword [esp + 0x18], 0x49f470
mov edx, dword [ecx]
mov eax, dword [edi]
add edi, 4
xor eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x14]
push esi
call fcn.00fdf79b
mov ebx, eax
mov dword [esp + 0x1c], ebx
pop ecx
pop ecx
test ebx, ebx
je 0xfee99d
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0xfee994
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0xfee96b
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0xfef4e1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push ecx
call fcn.00fd4535
and dword [ebp - 8], 0
add esp, 0x14
mov dword [ebp - 0x10], 0x9ba7fb
mov dword [ebp - 0xc], 0x5c4027
mov dword [ebp - 4], 0x2880b7
shl dword [ebp - 4], 0x10
add dword [ebp - 4], 0xf84f
imul eax, dword [ebp - 4], 0x24
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x19deea17
cmp dword [edx + 4], 0x40
jae 0xfef536
xor eax, eax
jmp 0xfef55f
mov ecx, dword [edx]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0xfef532
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xfef532
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0x28
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4013ad
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4013be
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406782
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00406782
mov esp, ebp
pop ebp
ret

Function at 0x404130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00407390
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov ecx, eax
shr ecx, 5
and cl, 1
neg cl
xor cl, al
mov byte [ebp + eax - 0x3a988], cl
inc eax
cmp eax, 0x3a980
jb 0x4041b3
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406782
mov esp, ebp
pop ebp
ret
Function at 0x404980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa1844
call fcn.00407390
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0xa1820], 0
push eax
push eax
push eax
mov word [ebp - 0xa180c], ax
lea eax, [ebp - 0xa181c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa1820]
mov dword [ebp - 0xa181c], 0x10001
push eax
mov dword [ebp - 0xa1818], 0x5622
mov dword [ebp - 0xa1814], 0x5622
mov dword [ebp - 0xa1810], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xa17fc
lea eax, [ebp - 0xa1808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov ebx, eax
movsx ecx, al
shr ebx, 3
mov edx, eax
and ebx, 1
shr edx, 7
imul ebx, eax
movsx edx, dl
imul edx, ecx
shr ebx, 3
xor bl, dl
mov byte [ebp + eax - 0xa1808], bl
inc eax
cmp eax, 0xa17fc
jb 0x404a04
lea eax, [ebp - 0xa1808]
mov dword [ebp - 0xa183c], 0xa17fc
mov dword [ebp - 0xa1840], eax
lea eax, [ebp - 0xa1840]
push 0x20
push eax
push dword [ebp - 0xa1820]
mov dword [ebp - 0xa1838], 0
mov dword [ebp - 0xa1834], 0
mov dword [ebp - 0xa1830], 0
mov dword [ebp - 0xa182c], 0
mov dword [ebp - 0xa1828], 0
mov dword [ebp - 0xa1824], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xa1840]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xa1840]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406782
mov esp, ebp
pop ebp
ret
Function at 0x4055f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14303c
call fcn.00407390
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x143018], 0
push eax
push eax
push eax
mov word [ebp - 0x143004], ax
lea eax, [ebp - 0x143014]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x143018]
mov dword [ebp - 0x143014], 0x10001
push eax
mov dword [ebp - 0x143010], 0xac44
mov dword [ebp - 0x14300c], 0xac44
mov dword [ebp - 0x143008], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x142ff8
lea eax, [ebp - 0x143000]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor esi, esi
lea edi, [esi + 0xb]
nop dword [eax]
mov ecx, esi
xor edx, edx
shr ecx, 0xc
lea eax, [ecx - 2]
xor eax, ecx
div edi
mov eax, 0xafedc320
imul edx, esi
shr edx, 6
mov ecx, edx
shr eax, cl
and eax, 1
imul eax, esi
test eax, eax
mov eax, esi
setne bl
shr eax, 0xd
and eax, 7
movsx ecx, byte [eax + str.36364689]
mov eax, 0xaaaaaaab
imul ecx, esi
mul ecx
mov eax, 0xafedc320
shr edx, 6
mov ecx, edx
shr eax, cl
and eax, 1
imul eax, esi
neg eax
sbb eax, eax
neg eax
add bl, al
mov byte [ebp + esi - 0x143000], bl
inc esi
cmp esi, 0x142ff8
jb 0x405680
lea eax, [ebp - 0x143000]
mov dword [ebp - 0x143034], 0x142ff8
mov dword [ebp - 0x143038], eax
lea eax, [ebp - 0x143038]
push 0x20
push eax
push dword [ebp - 0x143018]
mov dword [ebp - 0x143030], 0
mov dword [ebp - 0x14302c], 0
mov dword [ebp - 0x143028], 0
mov dword [ebp - 0x143024], 0
mov dword [ebp - 0x143020], 0
mov dword [ebp - 0x14301c], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x143038]
push eax
push dword [ebp - 0x143018]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x143038]
push eax
push dword [ebp - 0x143018]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x143018]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406782
mov esp, ebp
pop ebp
ret
Function at 0x4057a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x75344
call fcn.00407390
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x75320], 0
push eax
push eax
push eax
mov word [ebp - 0x7530c], ax
lea eax, [ebp - 0x7531c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x75320]
mov dword [ebp - 0x7531c], 0x10001
push eax
mov dword [ebp - 0x75318], 0x1f40
mov dword [ebp - 0x75314], 0x1f40
mov dword [ebp - 0x75310], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x75300
lea eax, [ebp - 0x75308]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
xor edx, edx
mov ecx, ebx
and ecx, 0xfff
mov eax, 0x7530
inc ecx
div ecx
mov edx, ebx
movsx ecx, bl
shr edx, 1
xor dl, 2
and dl, 0x17
movsx edx, dl
imul edx, ecx
mov ecx, ebx
shr ecx, 2
or al, dl
or al, cl
mov byte [ebp + ebx - 0x75308], al
inc ebx
cmp ebx, 0x75300
jb 0x405824
lea eax, [ebp - 0x75308]
mov dword [ebp - 0x7533c], 0x75300
mov dword [ebp - 0x75340], eax
lea eax, [ebp - 0x75340]
push 0x20
push eax
push dword [ebp - 0x75320]
mov dword [ebp - 0x75338], 0
mov dword [ebp - 0x75334], 0
mov dword [ebp - 0x75330], 0
mov dword [ebp - 0x7532c], 0
mov dword [ebp - 0x75328], 0
mov dword [ebp - 0x75324], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x75340]
push eax
push dword [ebp - 0x75320]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x75340]
push eax
push dword [ebp - 0x75320]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x75320]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406782
mov esp, ebp
pop ebp
ret
Function at 0x405910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.00407390
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x3a9a0], 0
push eax
push eax
push eax
mov word [ebp - 0x3a98c], ax
lea eax, [ebp - 0x3a99c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3a9a0]
mov dword [ebp - 0x3a99c], 0x10001
push eax
mov dword [ebp - 0x3a998], 0x1f40
mov dword [ebp - 0x3a994], 0x1f40
mov dword [ebp - 0x3a990], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x3a980
lea eax, [ebp - 0x3a988]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr edx, 8
shr ecx, 9
and dl, 3
or dl, cl
mov ecx, eax
neg ecx
and dl, 0xb
shr ecx, 0xa
and cl, 0xe
or dl, cl
mov ecx, eax
add dl, al
shr ecx, 2
xor dl, al
add cl, 3
movsx ecx, cl
movsx edx, dl
imul edx, ecx
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp eax, 0x3a980
jb 0x405993
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9bc], 0x3a980
mov dword [ebp - 0x3a9c0], eax
lea eax, [ebp - 0x3a9c0]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9b8], 0
mov dword [ebp - 0x3a9b4], 0
mov dword [ebp - 0x3a9b0], 0
mov dword [ebp - 0x3a9ac], 0
mov dword [ebp - 0x3a9a8], 0
mov dword [ebp - 0x3a9a4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c0]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406782
mov esp, ebp
pop ebp
ret