joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x298
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x294], eax
push esi
push edi
mov esi, str.HARDWAREDEVICEMAPSERIALCOMM
call fcn.00401970
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0x401a81
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.004031ba
add esp, 0x298
ret
push ebx
push ebp
push 0x1fe
lea ecx, [esp + 0x2a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x30], ax
call fcn.00403930
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0xc
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 0
or ebx, 0xffffffff
nop
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x238]
push eax
push esi
push edi
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x3c], 0x100
mov dword [esp + 0x38], ebx
call ebp
inc esi
test eax, eax
je 0x401af2
cmp eax, 0xea
jne 0x401b2b
cmp dword [esp + 0x14], 1
jne 0x401ab0
lea ecx, [esp + 0x24]
push ecx
call fcn.004038bd
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push str.COM_d
push eax
call fcn.004036b6
mov ecx, dword [esp + 0x2bc]
add esp, 0x10
cmp ecx, dword [esp + 0x18]
jne 0x401ab0
mov bl, 1
jmp 0x401b2f
mov bl, byte [esp + 0x13]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2a4]
pop ebp
mov al, bl
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004031ba
add esp, 0x298
ret
Function at 0x401b60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x22c
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x228], eax
xor eax, eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0xc], ax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
call fcn.00403930
push 8
push ebx
push str.USBSTOR_
call fcn.00403a94
add esp, 0x18
test eax, eax
je 0x401bde
xor al, al
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004031ba
add esp, 0x22c
ret
push esi
push edi
mov esi, 1
push esi
lea eax, [esp + 0xc]
push 0x411524
push eax
call fcn.004031c9
add esp, 0xc
call fcn.00401850
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x103
lea ecx, [esp + 0x30]
push ecx
push 0x411358
lea edx, [esp + 0x18]
push edx
push str.hardware
call edi
xor eax, eax
cmp ax, word [esp + 0x28]
je 0x401c97
jmp 0x401c30
lea eax, [esp + 0x28]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c37
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c]
push ebx
push ecx
call fcn.00403a94
add esp, 0xc
test eax, eax
je 0x401cb0
inc esi
push esi
lea edx, [esp + 0xc]
push 0x411524
push edx
call fcn.004031c9
add esp, 0xc
call fcn.00401850
push eax
push 0x103
lea eax, [esp + 0x30]
push eax
push 0x411358
lea ecx, [esp + 0x18]
push ecx
push str.hardware
call edi
xor edx, edx
cmp dx, word [esp + 0x28]
jne 0x401c30
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004031ba
add esp, 0x22c
ret
mov ecx, dword [esp + 0x230]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004031ba
add esp, 0x22c
ret

Function at 0x401d70
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x416a00
push 0x411358
push str.DisableCDROMScan
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x416a00
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401dca
test dx, dx
je 0x401dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401dca
add eax, 4
add ecx, 4
test dx, dx
jne 0x401da0
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401de0
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x416c08
push 0x411358
push str.DisableComPortScan
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x416c08
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e3a
test dx, dx
je 0x401e32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e3a
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e10
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret
Function at 0x401e50
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x416e10
push 0x411358
push str.DisableRNDISScan
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x416e10
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401eaa
test dx, dx
je 0x401ea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401eaa
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e80
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401ec0
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417018
push 0x411358
push str.EnableRescueMode
push str.hardware
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.true
mov eax, 0x417018
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f1a
test dx, dx
je 0x401f12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f1a
add eax, 4
add ecx, 4
test dx, dx
jne 0x401ef0
xor eax, eax
test eax, eax
sete al
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
ret

Function at 0x401f30
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417220
push 0x411358
push str.ScanInterval
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x417220
call fcn.0040344e
add esp, 4
ret

Function at 0x401f70
Capabilities:
Read .ini file

Disassembly:
call fcn.00401850
push eax
push 0x103
push 0x417428
push 0x411358
push str.ScanRepeat
push str.software
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x417428
call fcn.0040344e
add esp, 4
ret
Function at 0x4022a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x228
mov eax, dword [0x415248]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x23c]
push edi
mov edi, dword [esp + 0x23c]
xor ebx, ebx
push ebx
call fcn.00402270
add esp, 4
mov ebp, eax
cmp edi, ebx
je 0x402458
cmp esi, ebx
je 0x402458
mov eax, esi
lea edx, [eax + 2]
jmp 0x4022f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022f0
sub eax, edx
sar eax, 1
push eax
push esi
push edi
call fcn.00403a94
add esp, 0xc
test eax, eax
jne 0x402458
push edi
lea eax, [esp + 0x30]
push str.SYSTEMCurrentControlSetEnum_s
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004031c9
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
push ebx
lea edx, [esp + 0x38]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402458
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push str.HardwareID
push ecx
call esi
test eax, eax
jne 0x40242a
mov edx, dword [esp + 0x14]
add edx, 4
push edx
call fcn.004031af
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push str.HardwareID
push ecx
call esi
test eax, eax
jne 0x402421
mov eax, edi
mov esi, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4023b0
sub eax, edx
sar eax, 1
je 0x402421
push esi
call fcn.004038bd
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x38]
push edx
push str.USBVID__04xPID__04xREV__04xMI__02x
push esi
call fcn.004036b6
add esp, 0x1c
cmp eax, 4
jge 0x402421
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4023f3
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov eax, esi
lea edx, [eax + 2]
jmp 0x402410
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402410
sub eax, edx
sar eax, 1
jne 0x4023c1
push edi
call fcn.00403ea5
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, dword [esp + 0x1c]
jne 0x402454
mov eax, dword [esp + 0x18]
cmp eax, 0x200
je 0x40244d
cmp eax, 0x300
jne 0x402454
mov eax, 1
jmp 0x40245a
xor eax, eax
jmp 0x40245a
xor al, al
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004031ba
add esp, 0x228
ret
Function at 0x402dd0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.MEDIATEK_3G_DATA_CARD
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x402e3d
push esi
push str._n_Switcher__Create_mutex__0x_08X__..._n
call fcn.004017d0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call edi
cmp eax, 0xb7
jne 0x402e2a
call edi
push eax
push str._n_Switcher__Error__d_:_mutex_has_already_existed______n
call fcn.004017d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [0x417630], 0
xor eax, eax
pop esi
ret
push str._n_Switcher__Create_mutex_Succeeds__n
call fcn.004017d0
add esp, 4
mov dword [0x417630], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x4031ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415248]
jne 0x4031c4
repz ret
jmp fcn.00404757

Function at 0x40db1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406263
and dword [ebp - 4], 0
cmp dword [0x417fd4], 0
mov ebx, eax
jne 0x40dbcc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40dc7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40dc7d
push eax
call fcn.004061f1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417fd4], eax
call esi
push eax
call fcn.004061f1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417fd8], eax
call esi
push eax
call fcn.004061f1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417fdc], eax
call esi
push eax
call fcn.004061f1
pop ecx
mov dword [0x417fe4], eax
test eax, eax
je 0x40dbcc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004061f1
pop ecx
mov dword [0x417fe0], eax
mov eax, dword [0x417fe0]
cmp eax, ebx
je 0x40dc24
cmp dword [0x417fe4], ebx
je 0x40dc24
push eax
call fcn.0040626c
push dword [0x417fe4]
mov esi, eax
call fcn.0040626c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40dc24
test edi, edi
je 0x40dc24
call esi
test eax, eax
je 0x40dc1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40dc1b
test byte [ebp - 0xc], 1
jne 0x40dc24
or dword [ebp + 0x10], 0x200000
jmp 0x40dc5d
mov eax, dword [0x417fd8]
cmp eax, ebx
je 0x40dc5d
push eax
call fcn.0040626c
pop ecx
test eax, eax
je 0x40dc5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40dc5d
mov eax, dword [0x417fdc]
cmp eax, ebx
je 0x40dc5d
push eax
call fcn.0040626c
pop ecx
test eax, eax
je 0x40dc5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417fd4]
call fcn.0040626c
pop ecx
test eax, eax
je 0x40dc7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dc7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e17
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407e86
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x407e62
push ebx
push edi
push eax
call fcn.0040ba60
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x407e7d
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

Function at 0x41313a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x413149
pop dword [ebp - 0x4c]
mov eax, 0x413149
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3d703
push 0
mov eax, 0xe4e791a1
sub eax, 0xe4a5af75
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x891cd02a
sub ecx, 0x891c88fb
xor edx, edx
add edx, eax
mov esi, 0x9ce030e1
sub esi, 0x9c9c7ee1
add esi, dword [ebp - 0x4c]
mov ebx, 0x3f9176f4
add ebx, 0x3aa05d6a
sub dword [ebp - 0x1c], esi
mov edi, dword [esi]
xor dword [ebp - 0x1c], edx
xor edi, ebx
xor dword [ebp - 0x1c], edi
mov dword [edx], edi
mov dword [ebp - 0x10], 0x4add1748
add edx, 0xa4ad9dd1
sub edx, 0xa4ad9dcd
add esi, 4
loop 0x4131a5
add eax, 0x923c6a05
add eax, 0x6dc4a58a
xor ebx, ebx
add ebx, eax
add eax, 0xee39af2d
sub eax, 0xee39af28
mov ecx, 0xc6b9d92c
sub ecx, 0xc679d92c
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x402c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.004052e0
mov eax, dword [0x408004]
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 edx, eax
mov ecx, eax
shr edx, 0xd
mov ebx, eax
and dl, al
shr ecx, 6
or dl, cl
shr ebx, 8
mov dword [ebp - 0x3a9a4], edx
mov edx, eax
shr edx, 9
or dl, bl
movsx ecx, al
movsx edx, dl
imul edx, ecx
mov ecx, dword [ebp - 0x3a9a4]
and dl, bl
and dl, 0x2e
xor cl, dl
mov byte [ebp + eax - 0x3a988], cl
inc eax
cmp eax, 0x3a980
jb 0x402ce4
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c0], 0x3a980
mov dword [ebp - 0x3a9c4], eax
lea eax, [ebp - 0x3a9c4]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9bc], 0
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
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c4]
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.004045e9
mov esp, ebp
pop ebp
ret
Function at 0x403090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c8
call fcn.004052e0
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
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
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x3a9a4], ecx
xor esi, esi
nop dword [eax]
mov eax, 0x51eb851f
mov bl, cl
mul esi
add esi, 6
shr edx, 5
shr edx, 1
mov ecx, edx
shl bl, cl
mov ecx, dword [ebp - 0x3a9a4]
mov eax, ecx
shr eax, 3
and al, 1
neg al
xor bl, al
mov byte [ebp + ecx - 0x3a988], bl
inc ecx
mov dword [ebp - 0x3a9a4], ecx
cmp esi, 0x15f900
jb 0x403120
lea eax, [ebp - 0x3a988]
mov dword [ebp - 0x3a9c0], 0x3a980
mov dword [ebp - 0x3a9c4], eax
lea eax, [ebp - 0x3a9c4]
push 0x20
push eax
push dword [ebp - 0x3a9a0]
mov dword [ebp - 0x3a9bc], 0
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
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x3a9c4]
push eax
push dword [ebp - 0x3a9a0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x3a9c4]
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]
pop esi
xor ecx, ebp
pop ebx
call fcn.004045e9
mov esp, ebp
pop ebp
ret
Function at 0x403510
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c4
call fcn.004052e0
mov eax, dword [0x408004]
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
test al, 0xf
mov ecx, eax
mov dl, 1
sete bl
shr ecx, 9
lea ebx, [ebx*4 + 2]
and bl, cl
movsx ecx, al
sub dl, bl
movsx edx, dl
imul edx, ecx
mov ecx, eax
shr ecx, 6
xor cl, al
add dl, cl
mov byte [ebp + eax - 0x3a988], dl
inc eax
cmp eax, 0x3a980
jb 0x403594
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.004045e9
mov esp, ebp
pop ebp
ret
Function at 0x4037e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3a9c0
call fcn.004052e0
mov eax, dword [0x408004]
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 cl, al
mov edx, eax
xor cl, 0x3f
shr edx, 5
or dl, cl
mov cl, al
shl cl, 2
or dl, cl
mov ecx, eax
shr ecx, 0xb
and dl, cl
movsx ecx, dl
imul ecx, ecx, 0x64
mov byte [ebp + eax - 0x3a988], cl
inc eax
cmp eax, 0x3a980
jb 0x403863
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.004045e9
mov esp, ebp
pop ebp
ret
Function at 0x404e1f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404e5e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404e5e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404e5e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404e5e
cmp dword [ecx + 0x74], 0xe
jbe 0x404e5e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, eax
xor eax, eax
xor esi, ebx
mov ebx, eax
xor ebx, ebx
mov eax, esi
xor ebx, esi
xor esi, ebx
xor esi, ebx
inc edx
inc eax
or edx, 0xcb
dec eax
sub esi, 0xac
rol edi, 0x3d
rcl edx, 0x90
not eax
ror edi, 0x79
not eax
bswap edx
bswap eax
add edx, 0x83
imul edi
bswap edi
add eax, 0x40
bswap esi
rcl ebx, 0xb9
inc ebx
not edi
bswap ebx
or eax, 0x2c
rcl esi, 0x54
or esi, 0x5e
bswap eax
add edi, 0x23
ror esi, 0xe5
ror edx, 0xd8
inc edi
rcl ebx, 0x54
imul ebx
imul edx
not edi
dec eax
or edi, 0xb1
or edi, 0xdd
rcr esi, 0xed
sub ebx, 0xf
inc eax
rol edi, 0x72
dec eax
ror esi, 0xe1
dec edx
ror eax, 0x12
imul edi
rcl esi, 0x24
sub esi, 0xe
bswap edi
or eax, 0xa1
imul edi
xor ecx, ecx
xor edi, edi
xor eax, esi
mov esi, esi
mov esi, esi
xor esi, ebx
mov eax, esi
mov ebx, esi
ror esi, 0xc9
mov edx, 0xc1
neg eax
rcl edi, 0xe5
neg esi
inc ebx
neg edi
rol ebx, 0xcd
and esi, 0x76
rcl ebx, 0x2b
bswap edi
sub esi, 0xa1
rcr edx, 0x6c
or edx, 0xba
dec esi
rol eax, 0xe5
and ebx, 0x67
bswap esi
rcl edi, 0x61
inc edx
bswap esi
and esi, 0x25
bswap esi
inc ebx
ror eax, 0x6b
imul edi
sbb eax, 0xee
imul ebx
not ebx
inc edx
not esi
sbb edx, 0x1a
mov eax, 0x3d
ror ebx, 0xf
sbb esi, 0x38
or esi, 0x77
not esi
mov eax, 0x1d
rcr eax, 0x35
bswap edx
add edx, 0x51
mov esi, 0xd8
bswap eax
sbb esi, 0xad
not ebx
sub edx, 0x90
rcl esi, 2
sub esi, 0x1d
rcl edx, 0xc7
or ebx, 0xe0
xor eax, eax
xor eax, ebx
xor eax, ebx
mov eax, eax
mov esi, eax
mov esi, ebx
mov ebx, ebx
mov eax, eax
xor ebx, eax
mov ecx, dword [ebp + 0xc]
sbb edx, 0xa0
rcl ebx, 0x85
neg ebx
or ebx, 0x4b
inc esi
rcl edi, 0x64
sbb ebx, 0x7c
not esi
inc edx
or edx, 0xa9
rcl edi, 6
dec esi
inc edx
add eax, 0x25
not eax
bswap edx
dec edi
rcl edi, 0x75
sbb eax, 0x4e
sbb eax, 0x31
rcr ebx, 0x27
rcr ebx, 0x25
imul eax
imul esi
sbb esi, 0x7d
sbb ebx, 0x98
rol eax, 0x33
neg edi
not eax
add ebx, 0x6f
dec ebx
not ebx
neg ebx
rcr edx, 0xb7
mov eax, 0x3d
rcr esi, 0x67
dec edi
rcl eax, 0x7f
rcr edx, 0x78
ror esi, 0xe8
add eax, 0x8b
or edx, 0x5e
add esi, 0xdb
rcl ebx, 0x5d
mov ebx, 0xc4
ror edx, 0xd5
sub edx, 0xd3
bswap ebx
not eax
add edi, 0xa3
mov edi, dword [ebp + 8]
xor esi, ebx
xor eax, esi
mov ebx, eax
mov esi, eax
mov esi, eax
mov ebx, ebx
mov esi, ebx
mov esi, eax
mov esi, esi
not byte [edi]
xor eax, esi
xor esi, eax
mov ebx, esi
xor eax, esi
mov eax, ebx
xor eax, esi
xor esi, eax
xor esi, ebx
mov eax, eax
mov eax, eax
xor esi, eax
mov esi, eax
sub byte [edi], 0xf1
add byte [edi], 0x63
mov esi, esi
xor ebx, eax
mov esi, eax
mov ebx, eax
xor ebx, esi
mov ebx, esi
mov ebx, esi
xor ebx, eax
mov ebx, esi
imul byte [edi]
inc edi
loop 0x40127b
pop esi
pop edi
pop ebx
pop ebp
ret