joyce8/EMBER2024-capa huggingface dataset:
Function at 0x527ac4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 8], 0
push 0xe
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.0050e181
add esp, 0xc
xor eax, dword [esp + 0xc]
xor eax, dword [esp + 0xc]
xor edx, 0
jns 0x527afd
jmp 0x527af3
jae 0x527af5
nop
jo 0x527af8
js 0x527afd
call 0x4618daab
call 0xed984155
je 0x527acc
mov byte [ebp - 0x18], 0x51
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0xe], 0x66
mov byte [ebp - 0x17], 0x73
inc ebp
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0xd], 0x79
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x11], 0x34
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0x15], 0x64
mov byte [ebp - 0x10], 0x33
mov byte [ebp - 0xb], 0
mov byte [ebp - 0x14], 0x66
mov byte [ebp - 0xf], 0x4f
mov cl, byte [ebp - 0x18]
sub cl, 1
mov byte [ebp - 0x18], cl
mov dl, byte [ebp - 0x13]
sub dl, 1
mov byte [ebp - 0x13], dl
mov al, byte [ebp - 0xe]
sub al, 1
mov byte [ebp - 0xe], al
mov cl, byte [ebp - 0x17]
sub cl, 1
mov byte [ebp - 0x17], cl
mov dl, byte [ebp - 0x12]
sub dl, 1
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0xd]
sub al, 1
mov byte [ebp - 0xd], al
mov cl, byte [ebp - 0x16]
sub cl, 1
mov byte [ebp - 0x16], cl
mov dl, byte [ebp - 0x11]
sub dl, 1
mov byte [ebp - 0x11], dl
mov al, byte [ebp - 0xc]
sub al, 1
mov byte [ebp - 0xc], al
mov cl, byte [ebp - 0x15]
sub cl, 1
mov byte [ebp - 0x15], cl
mov dl, byte [ebp - 0x10]
sub dl, 1
mov byte [ebp - 0x10], dl
mov al, byte [ebp - 0x14]
sub al, 1
mov byte [ebp - 0x14], al
mov cl, byte [ebp - 0xf]
sub cl, 1
mov byte [ebp - 0xf], cl
xor esp, 0
or edx, 0
test esp, 0x169a
add ebx, 0
jae 0x527bc5
pushf
rol ebx, 0
js 0x527bbe
popf
mov esp, esp
jb 0x527bc5
xor eax, 0xffcceae8
dec dword [ecx + 0x7d83f845]
clc
add byte [ebp + 7], dh
call fcn.005248b4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x527bda
xor eax, eax
jmp 0x527c66
add esp, 0
call 0x527be2
add esp, 4
jl 0x527bed
mov eax, eax
jge 0x527bed
mov esp, 0xe8558de7
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00510bb9
mov dword [ebp - 4], eax
push 0xe
push 0
lea ecx, [ebp - 0x18]
push ecx
call fcn.0050e181
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x527c17
xor eax, eax
jmp 0x527c66
nop
jp 0x527c34
pushf
lea eax, [eax + 0x68a9]
lea eax, [eax - 0x68a9]
xor edi, 0
popf
jg 0x527c2f
jo 0x527c31
jnp 0x527c34
call 0x534ed1c3
mov edx, dword [ebp - 4]
push edx
call fcn.0052580a
add esp, 4
js 0x527c42
cmp ebx, dword [esp + 0xc]
cmp ecx, dword [esp + 0x10]
sub esp, 0
jb 0x527c5b
jl 0x527c51
lea esp, [esp]
jnp 0x527c56
xchg esp, esp
jae 0x527c5b
xor eax, 0x500c458b
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x529076
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0xc
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0050e181
add esp, 0xc
add edi, dword [esp]
sub edi, dword [esp]
jns 0x5290b2
pushf
jo 0x52909b
ror esp, 0
xor ebx, 0x3345
xor ebx, 0x3345
popf
lea esp, [esp]
js 0x5290b2
mov ecx, 0x46f045c6
mov byte [ebp - 0x10], 0x46
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 6], 0x74
mov byte [ebp - 0xf], 0x79
mov byte [ebp - 0xa], 0x70
mov byte [ebp - 5], 0
mov byte [ebp - 0xe], 0x6a
mov byte [ebp - 9], 0x64
mov byte [ebp - 0xd], 0x75
mov byte [ebp - 8], 0x66
mov byte [ebp - 0xc], 0x51
mov byte [ebp - 7], 0x74
jne 0x5290e4
test edx, edi
jns 0x5290e8
std
cld
ja 0x5290f1
mov edi, edi
jbe 0x5290f1
mov edx, 0x80f04d8a
jmp 0xf0a018fb
mov cl, byte [ebp - 0x10]
sub cl, 1
mov byte [ebp - 0x10], cl
mov dl, byte [ebp - 0xb]
sub dl, 1
mov byte [ebp - 0xb], dl
mov al, byte [ebp - 6]
sub al, 1
mov byte [ebp - 6], al
mov cl, byte [ebp - 0xf]
sub cl, 1
mov byte [ebp - 0xf], cl
mov dl, byte [ebp - 0xa]
sub dl, 1
mov byte [ebp - 0xa], dl
mov al, byte [ebp - 0xe]
sub al, 1
mov byte [ebp - 0xe], al
mov cl, byte [ebp - 9]
sub cl, 1
mov byte [ebp - 9], cl
mov dl, byte [ebp - 0xd]
sub dl, 1
mov byte [ebp - 0xd], dl
mov al, byte [ebp - 8]
sub al, 1
mov byte [ebp - 8], al
mov cl, byte [ebp - 0xc]
sub cl, 1
mov byte [ebp - 0xc], cl
mov dl, byte [ebp - 7]
sub dl, 1
mov byte [ebp - 7], dl
push edi
pop edi
jns 0x529178
pushf
jae 0x529159
add ebx, 0x7c61
sub ebx, 0x7c61
popf
xchg esi, esi
lea eax, [eax + 0x67f9]
lea eax, [eax - 0x67f9]
js 0x529178
add eax, 0xffb737e8
dec dword [ecx + 0x7d83fc45]
cld
add byte [ebp + 4], dh
call fcn.005248b4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x52918a
xor eax, eax
jmp 0x5291bc
or ebx, ebx
or esp, 0
jg 0x529191
jle 0x529199
mov ecx, ecx
jg 0x529199
xor eax, 0xf0458d09
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00510bb9
mov dword [ebp - 0x14], eax
push 0xc
push 0
lea edx, [ebp - 0x10]
push edx
call fcn.0050e181
add esp, 0xc
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43fcc0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x20]
call fcn.0042fe12
lea eax, [ebp + 8]
push eax
call fcn.00428a5b
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0042e1e2
push 0x14
lea ecx, [ebp - 4]
call fcn.0042e1e2
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x48b09c
mov dword [ebp - 8], edi
call fcn.0042fc5f
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
movzx eax, al
push 0x2c
pop esi
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043c3b4
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.0043060a
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x43fd58
add dword [ebp + 8], 2
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043c3b4
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0043060a
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x43fd80
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push ebx
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043c3b4
push eax
call fcn.00430857
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x43fd92
mov ebx, 0x80070057
jmp 0x43fe90
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x43fda4
cmp dword [ebp - 0x10], edi
jne 0x43fda4
cmp word [eax], di
je 0x43fd88
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.0042e20b
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x14], edi
call fcn.0040dca1
push dword [ebp - 0xc]
mov edi, eax
call fcn.0040dca1
pop ecx
pop ecx
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
jne 0x43fdf2
cmp dword [ebp - 8], ecx
jne 0x43fdf2
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x43fe34
cmp dword [ebp - 8], 2
je 0x43fe3c
cmp dword [ebp - 0x10], ecx
jne 0x43fe3c
push edi
call fcn.0046fe88
push 0
mov esi, eax
push 0x49b190
neg esi
sbb esi, esi
push str.KERNEL32.DLL
push str.CreateSymbolicLinkW
neg esi
call fcn.004299ca
mov eax, dword [0x49b190]
add esp, 0x14
test eax, eax
je 0x43fe90
push esi
push edi
push dword [ebp + 8]
call eax
test eax, eax
je 0x43fe88
xor ebx, ebx
jmp 0x43fe90
cmp word [edi], cx
jne 0x43fe4a
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43fe80
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.0042e7bd
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.0042b832
add esp, 0x18
test eax, eax
je 0x43fe88
xor eax, eax
jmp 0x43fe8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [ebp - 4]
call fcn.00428a48
lea ecx, [ebp - 0xc]
call fcn.00428a48
lea ecx, [ebp - 0x20]
call fcn.00428a48
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x100725f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001854
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072b7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10072aa
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10072b9
xor eax, eax
pop esi
leave
ret 4

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x541b3fa7
nop
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4b834098
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x588
push ebx
push esi
push edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x78]
xor esi, esi
cmp eax, 0xc
jne 0x401028
mov edi, str.arm64
jmp 0x401041
cmp eax, 9
jne 0x401034
mov edi, 0x402078
jmp 0x401041
cmp eax, esi
jne 0x401121
mov edi, 0x402080
push 0x104
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x280]
push 0x5c
push eax
call fcn.00401156
pop ecx
pop ecx
cmp eax, esi
jne 0x40106e
lea eax, [ebp - 0x280]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
add eax, 2
push str.imgdrive__simgdrive.exe
push eax
call ebx
push 0x40
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.00401277
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
add esp, 0x18
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
xor edi, edi
push esi
inc edi
push esi
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4010e9
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
jmp 0x40114f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x588]
push str.Could_not_execute_app:__s___Error__d_
push eax
call ebx
add esp, 0x10
push 0x10
push str.ImgDrive_Portable
lea eax, [ebp - 0x588]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, edi
jmp 0x40114f
push eax
lea eax, [ebp - 0x280]
push str.Unsupported_platform:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x10
push str.ImgDrive_Portable
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40117e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
je 0x4011a3
cmp al, 0x20
jle 0x4011b5
inc esi
cmp byte [esi], 0x20
jg 0x401197
jmp 0x4011b5
cmp al, 0x22
je 0x4011b4
inc esi
mov al, byte [esi]
test al, al
jne 0x40119f
cmp al, 0x22
jne 0x4011b5
jmp 0x4011b4
cmp al, 0x20
jg 0x4011bb
inc esi
mov al, byte [esi]
test al, al
jne 0x4011b0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401229
push 0x402044
push 0x402040
call fcn.0040120f
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x4011eb
movzx eax, word [ebp - 0x14]
jmp 0x4011ee
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401241
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3ea05354
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x2d3e3b27
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004050c0
mov eax, dword [section..data]
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
movaps xmm4, xmmword [0x406b40]
add esp, 0xc
movups xmm3, xmmword [0x406b60]
xor ecx, ecx
lea eax, [ecx + 4]
movd xmm0, ecx
add ecx, 8
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm0, xmm2
movaps xmm1, xmm2
psrld xmm0, 4
paddd xmm2, xmm2
psrld xmm2, 7
andps xmm1, xmm3
andps xmm0, xmm3
packuswb xmm1, xmm1
packuswb xmm0, xmm0
andps xmm2, xmm3
packuswb xmm0, xmm0
packuswb xmm2, xmm2
packuswb xmm1, xmm1
xorps xmm0, xmm1
packuswb xmm2, xmm2
orps xmm0, xmm2
xorps xmm0, xmm1
movd dword [ebp + eax - 0x3a98c], xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm0, xmm2
movaps xmm1, xmm2
psrld xmm0, 4
paddd xmm2, xmm2
psrld xmm2, 7
andps xmm1, xmm3
andps xmm0, xmm3
packuswb xmm1, xmm1
packuswb xmm0, xmm0
andps xmm2, xmm3
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm2, xmm2
xorps xmm0, xmm1
packuswb xmm2, xmm2
orps xmm0, xmm2
xorps xmm0, xmm1
movd dword [ebp + eax - 0x3a988], xmm0
add eax, 8
cmp eax, 0x3a984
jb 0x4030d4
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.004042b3
mov esp, ebp
pop ebp
ret
Function at 0x403520
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, 0x3a9e0
call fcn.004050c0
mov eax, dword [section..data]
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
cmp dword [0x4083c8], 6
jl 0x4036b0
movaps xmm0, xmmword [str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n]
xor ecx, ecx
movaps xmm5, xmmword [0x406b40]
movups xmm4, xmmword [0x406b30]
movaps xmmword [ebp - 0x3a9e0], xmm0
lea eax, [ecx + 4]
mov edx, dword [ebp - 0x3a9e0]
nop word [eax + eax]
movd xmm0, ecx
add ecx, 8
pshufd xmm3, xmm0, 0
paddd xmm3, xmm5
movd xmm0, edx
movaps xmm2, xmm3
pshufb xmm3, xmm4
psrld xmm2, 5
movaps xmm1, xmm3
pshufb xmm2, xmm4
vpmovzxbw ymm0, xmm0
andps xmm1, xmm2
xorps xmm3, xmm2
vpmovzxbw ymm1, xmm1
vpmullw ymm0, ymm1, ymm0
vpmovzxwd zmm0, ymm0
vpmovdb xmm0, zmm0
orps xmm0, xmm3
movd dword [ebp + eax - 0x3a98c], xmm0
movd xmm0, eax
pshufd xmm3, xmm0, 0
paddd xmm3, xmm5
movd xmm0, edx
movaps xmm2, xmm3
psrld xmm2, 5
pshufb xmm3, xmm4
pshufb xmm2, xmm4
movaps xmm1, xmm3
vpmovzxbw ymm0, xmm0
andps xmm1, xmm2
xorps xmm3, xmm2
vpmovzxbw ymm1, xmm1
vpmullw ymm0, ymm1, ymm0
vpmovzxwd zmm0, ymm0
vpmovdb xmm0, zmm0
orps xmm0, xmm3
movd dword [ebp + eax - 0x3a988], xmm0
add eax, 8
cmp eax, 0x3a984
jb 0x4035f0
jmp 0x4036df
mov ecx, eax
shr ecx, 5
mov dword [ebp - 0x3a9c4], ecx
and cl, al
mov dl, cl
shl cl, 2
add dl, cl
mov ecx, dword [ebp - 0x3a9c4]
xor cl, al
add dl, dl
or dl, cl
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp eax, 0x3a980
jb 0x4036b0
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.004042b3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x403790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.004050c0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
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 ebx, eax
movsx edx, al
shr ebx, 5
mov ecx, eax
xor bl, al
shr ecx, 3
or bl, cl
movsx ecx, al
imul edx, ecx
add bl, al
xor bl, dl
mov byte [ebp + eax - 0x3a988], bl
inc eax
cmp eax, 0x3a980
jb 0x403814
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
pop ebx
call fcn.004042b3
mov esp, ebp
pop ebp
ret
Function at 0x404ae4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404b23
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404b23
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404b23
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404b23
cmp dword [ecx + 0x74], 0xe
jbe 0x404b23
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4051b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x4051ce
mov ecx, dword [ebp - 8]
call fcn.00406680
jmp 0x4051e1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x4051e1
mov ecx, dword [ebp - 8]
call fcn.00406500
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406500
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x40651b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jae 0x406587
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x40655f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x406566
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x406512
jmp 0x406592
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jae 0x4065fe
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x4065d6
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x4065dd
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x406589
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x40663c
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x406643
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret