joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101ebb6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003be0
call fcn.0101828c
xor esi, esi
cmp dword [0x1022d00], esi
jne 0x101ebfa
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101ebe5
mov dword [0x1022d00], edi
jmp 0x101ebfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101ebfa
mov dword [0x1022d00], 2
mov eax, dword [0x1022d00]
cmp eax, 2
je 0x101ecdb
cmp eax, esi
je 0x101ecdb
cmp eax, 1
jne 0x101ec3f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x101ec28
mov eax, dword [0x1022c00]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x101ec46
xor eax, eax
jmp 0x101eced
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.010162d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x101ec7c
cmp edi, esi
jne 0x101ec97
lea eax, [ebx + ebx]
push eax
call fcn.01017480
pop ecx
mov edi, eax
cmp edi, esi
je 0x101ec3f
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101ecca
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x101ecb4
push esi
push esi
jmp 0x101ecba
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x101ecd6
push edi
call fcn.0101749c
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x101eced
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.010182c7
ret

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2c033c03
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x8b30b37
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401200
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x6bb46c], 0
jne 0x40139a
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x6bb470], eax
test eax, eax
jne 0x401245
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadLibrary___imagehlp.dll___:_GetLastError___lu_n
call fcn.004a7323
add esp, 8
mov eax, 1
mov dword [0x6bb46c], 0
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymCleanup
push eax
call esi
mov dword [0x6bb498], eax
mov eax, dword [0x6bb470]
push str.SymFunctionTableAccess
push eax
call esi
mov ecx, dword [0x6bb470]
push str.SymGetLineFromAddr
push ecx
mov dword [0x6bb49c], eax
call esi
mov edx, dword [0x6bb470]
push str.SymGetModuleBase
push edx
mov dword [0x6bb4a0], eax
call esi
mov dword [0x6bb4a4], eax
mov eax, dword [0x6bb470]
push str.SymGetModuleInfo
push eax
call esi
mov ecx, dword [0x6bb470]
push str.SymGetOptions
push ecx
mov dword [0x6bb4a8], eax
call esi
mov edx, dword [0x6bb470]
push str.SymGetSymFromAddr
push edx
mov dword [0x6bb4ac], eax
call esi
mov dword [0x6bb4b0], eax
mov eax, dword [0x6bb470]
push str.SymInitialize
push eax
call esi
mov ecx, dword [0x6bb470]
push str.SymSetOptions
push ecx
mov dword [0x6bb4b4], eax
call esi
mov edx, dword [0x6bb470]
push str.StackWalk
push edx
mov dword [0x6bb4bc], eax
call esi
mov dword [0x6bb4c0], eax
mov eax, dword [0x6bb470]
push str.UnDecorateSymbolName
push eax
call esi
mov ecx, dword [0x6bb470]
push str.SymLoadModule
push ecx
mov dword [0x6bb4c4], eax
call esi
cmp dword [0x6bb498], 0
mov dword [0x6bb4b8], eax
pop esi
je 0x40139d
cmp dword [0x6bb49c], 0
je 0x40139d
cmp dword [0x6bb4a4], 0
je 0x40139d
cmp dword [0x6bb4a8], 0
je 0x40139d
cmp dword [0x6bb4ac], 0
je 0x40139d
cmp dword [0x6bb4b0], 0
je 0x40139d
cmp dword [0x6bb4b4], 0
je 0x40139d
cmp dword [0x6bb4bc], 0
je 0x40139d
cmp dword [0x6bb4c0], 0
je 0x40139d
cmp dword [0x6bb4c4], 0
je 0x40139d
test eax, eax
je 0x40139d
push 0x6bb478
mov dword [0x6bb46c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
ret
push str.GetProcAddress__:_some_required_function_not_found._n
call fcn.004a7323
mov edx, dword [0x6bb470]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov dword [0x6bb46c], 0
ret

Function at 0x4013d0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x6bb46c], 0
je 0x4013df
mov eax, 2
ret
mov eax, dword [esp + 0xc]
mov ecx, 3
cmp ecx, eax
sbb edx, edx
not edx
and edx, eax
mov eax, dword [esp + 8]
mov dword [0x6bb440], edx
test eax, eax
je 0x40141a
push eax
call fcn.004a73e0
mov dword [0x6bb448], eax
mov eax, dword [esp + 8]
add esp, 4
mov dword [0x6bb444], eax
jmp fcn.00401200
mov eax, dword [esp + 4]
mov dword [0x6bb448], 0
mov dword [0x6bb444], eax
jmp fcn.00401200
Function at 0x401710
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x904
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0x900], eax
mov al, byte [0x4c5776]
mov edx, dword [esp + 0x908]
lea ecx, [esp + 0x90c]
push ecx
push edx
mov byte [esp + 8], al
lea eax, [esp + 8]
push 0x3fe
push eax
call fcn.004b1024
add esp, 0x10
test eax, eax
js 0x40175a
cmp eax, 0x3fe
jle 0x401762
mov byte [esp + 0x3ff], 0
lea ecx, [esp]
push ecx
push 0x4c5b1c
lea edx, [esp + 0x488]
push 0x480
push edx
call fcn.004a75d1
add esp, 0x10
lea eax, [esp + 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.004a7314
add esp, 0x904
ret

Function at 0x403590
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x38
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 4]
push 0x4c5b20
push eax
call fcn.004a754d
add esp, 0xc
push 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4035dd
push eax
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [0x6bb3dc]
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
jne 0x4035dd
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004a7314
add esp, 0x38
ret 4

Function at 0x4043b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
xor ecx, ecx
lea esp, [esp]
mov edx, esi
shr edx, cl
add ecx, 8
inc eax
mov byte [eax - 1], dl
cmp ecx, 0x20
jl 0x4043c0
mov eax, dword [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a8063
add esp, 0x10
pop esi
pop ecx
ret

Function at 0x4043f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov dword [esp + 0x10], eax
lea edi, [esp + 0x14]
xor esi, esi
mov eax, ebp
mov edx, ebx
mov ecx, esi
call fcn.004a80e0
mov byte [edi], al
add esi, 8
inc edi
cmp esi, 0x40
jl 0x404418
mov ecx, dword [esp + 0x10]
push ecx
push 8
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.004a8063
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a7314
add esp, 0x10
ret
Function at 0x404460
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push eax
lea ebp, [esi + 0x1c8]
push ebp
call fcn.00462740
lea eax, [esi + 0x238]
push eax
push ebp
call fcn.00462880
add esp, 0x10
cmp eax, 1
jne 0x404568
push edi
lea edi, [esi + 0x178]
lea eax, [esi + 0x238]
push 0
push eax
call fcn.004620c0
lea eax, [esi + 0x238]
push eax
call fcn.00461ac0
push edi
push ebp
call fcn.00462020
add esp, 0x14
test eax, eax
je 0x40454e
nop
push edi
push esi
call fcn.00479100
add esp, 8
cmp dword [esi + 0x2a8], 0
jne 0x404536
lea edi, [esi + 0x168]
lea esp, [esp]
push edi
push esi
call fcn.00479610
add esp, 8
test eax, eax
je 0x404536
mov ecx, dword [esi + 0x16c]
mov edx, dword [edi]
push ebx
push ecx
push 1
push edx
call fcn.004a8063
mov eax, dword [esi + 0x174]
mov ecx, dword [esi + 0x170]
push ebx
push eax
push 1
push ecx
call fcn.004a8063
push edi
call fcn.00478f40
add esp, 0x24
test eax, eax
je 0x40452d
mov dword [esi + 0x2a8], 1
cmp dword [esi + 0x2a8], 0
je 0x4044e0
lea edi, [esi + 0x178]
push edi
push ebp
call fcn.00462020
add esp, 8
test eax, eax
jne 0x4044c0
lea eax, [esi + 0x238]
push eax
push ebp
call fcn.00462880
add esp, 8
cmp eax, 1
je 0x404493
pop edi
pop ebp
pop ebx
ret
Function at 0x405fc0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov eax, dword [esi + 0x164]
cmp eax, 0xd9
jne 0x40601b
push 0
push eax
mov eax, dword [0x6bb3dc]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
movsd xmm0, qword [0x4c5d68]
sub esp, 8
mov ecx, esi
movsd qword [esp], xmm0
call fcn.00405c20
mov edx, dword [0x6bb3dc]
push 0
lea ecx, [esi + 0x104]
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40611c
cmp eax, 0xda
jne 0x40611c
push edi
push 0
push eax
mov eax, dword [0x6bb3dc]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
movss xmm0, dword [0x570144]
xorps xmm2, xmm2
movsd xmm1, qword [0x4c5b80]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4c5c00]
comisd xmm2, xmm0
movapd xmm3, xmm0
jbe 0x40606b
subsd xmm3, xmm1
jmp 0x40606f
addsd xmm3, xmm1
comisd xmm2, xmm0
cvttsd2si edi, xmm3
jbe 0x40607f
subsd xmm0, xmm1
jmp 0x406083
addsd xmm0, xmm1
mov eax, dword [esi + 0x2a8]
mov edx, dword [esi + 0x2ac]
cvttsd2si ecx, xmm0
add ecx, eax
lea eax, [eax + edi + 0x1f]
mov edi, dword [esi + 0x2b4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
movq xmm0, qword [esp + 8]
movq qword [esi + 0x274], xmm0
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
movq xmm0, qword [esp + 0x10]
movq qword [esi + 0x27c], xmm0
movq xmm0, qword [esp + 0x18]
movq qword [esi + 0x284], xmm0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
movq xmm0, qword [esp + 0x20]
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x28]
movq qword [esi + 0x28c], xmm0
push 0
lea edx, [esi + 0x104]
mov dword [esi + 0x294], ecx
mov eax, dword [0x6bb3dc]
push edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
cmp byte [esp + 0x2c], 0
je 0x40613a
mov ecx, dword [0x6bb5ac]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 0
push 0x4c5db8
call eax
or eax, 0xffffffff
mov dword [esi + 0x164], eax
mov dword [0x6bb57c], eax
pop esi
add esp, 0x24
ret 4
Function at 0x409280
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
mov ebp, dword [esp + 0x38]
push esi
push 0
push ebp
mov esi, ecx
call fcn.00409190
cmp dword [esp + 0x4c], 0
mov dword [esi + 0x10], 0
je 0x40930e
push 0x4c5f08
push ebp
call fcn.004a8d61
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
je 0x40930e
push edi
push 2
push 0
push eax
call fcn.004a8c29
mov eax, dword [esi + 0x10]
push eax
call fcn.004a8b3a
mov edi, eax
add esp, 0x10
cmp edi, 0x2c
jge 0x40930d
push 0x2b
lea ecx, [esp + 0x11]
push 0
push ecx
mov byte [esp + 0x18], 0
call fcn.004a6ff0
mov edx, dword [esi + 0x10]
push edx
mov eax, 0x2c
sub eax, edi
push eax
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.004a8063
add esp, 0x1c
pop edi
cmp dword [esi + 0x10], 0
jne 0x40934e
push 0x4c5f04
push ebp
call fcn.004a8d61
add esp, 8
mov dword [esi + 0x10], eax
test eax, eax
jne 0x40933c
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004a7314
add esp, 0x30
ret 0x14
push eax
push 0x2c
lea edx, [esp + 0x10]
push 1
push edx
call fcn.004a8063
add esp, 0x10
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
cmp eax, 1
jg 0x409363
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x18], eax
xor eax, eax
cmp dword [esi + 0x10], eax
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x34]
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.004a7314
add esp, 0x30
ret 0x14
Function at 0x409390
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4094e0
push edi
push eax
call fcn.004a8b3a
push 0
lea edi, [eax - 0x2c]
mov eax, dword [esi + 0x10]
push 0
push eax
call fcn.004a8c29
mov ecx, dword [esi + 0x10]
push ecx
push 4
push 1
push str.RIFF
call fcn.004a8063
mov edx, dword [esi + 0x10]
push edx
lea eax, [edi + 0x24]
push eax
call fcn.004043b0
mov ecx, dword [esi + 0x10]
push ecx
push 0xc
push 1
push str.WAVEfmt
call fcn.004a8063
add esp, 0x38
cmp dword [esi + 0x14], 0x20
mov eax, 0x4c5f18
jl 0x4093fa
mov eax, 0x4c5f14
mov edx, dword [esi + 0x10]
push edx
push 2
push 1
push eax
call fcn.004a8063
movzx eax, word [esi + 0x18]
mov byte [esp + 0x18], al
shr eax, 8
mov byte [esp + 0x19], al
mov eax, dword [esi + 0x10]
push eax
push 2
lea ecx, [esp + 0x20]
push 1
push ecx
call fcn.004a8063
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
push edx
push eax
call fcn.004043b0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [esi + 0x1c]
imul eax, dword [esi + 0x18]
push ecx
push eax
call fcn.004043b0
mov eax, dword [esi + 0x14]
cdq
and edx, 7
add eax, edx
mov edx, dword [esi + 0x10]
sar eax, 3
imul eax, dword [esi + 0x18]
push edx
mov byte [esp + 0x3c], al
shr eax, 8
push 2
mov byte [esp + 0x41], al
lea eax, [esp + 0x40]
push 1
push eax
call fcn.004a8063
mov cx, word [esi + 0x14]
mov edx, 0xfff8
and cx, dx
movzx eax, cx
mov byte [esp + 0x48], al
shr eax, 8
add esp, 0x40
mov byte [esp + 9], al
mov eax, dword [esi + 0x10]
push eax
push 2
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004a8063
mov edx, dword [esi + 0x10]
push edx
push 4
push 1
push str.data
call fcn.004a8063
mov eax, dword [esi + 0x10]
push eax
push edi
call fcn.004043b0
mov ecx, dword [esi + 0x10]
push ecx
call fcn.004a749f
add esp, 0x2c
mov dword [esi + 0x10], 0
pop edi
pop esi
pop ecx
ret
Function at 0x40d450
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4c213b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x570f20]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a6110
push 4
mov dword [esp + 0x24], 0
call fcn.004a8502
mov edi, eax
add esp, 4
test edi, edi
je 0x40d4d2
call fcn.004a5ce6
mov dword [edi], eax
call fcn.004a5aa5
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004a59da
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40d4c7
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004a5a02
jmp 0x40d4d4
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4106c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c2478
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x570f20]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x41080d
cmp byte [edi + 0x49], 0
je 0x41080d
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x410800
mov eax, 0xf
mov byte [esp + 0x18], 0
pxor xmm0, xmm0
mov dword [esp + 0x2c], eax
movq qword [esp + 0x18], xmm0
cmp eax, 0x10
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 8
jae 0x410747
lea eax, [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
mov edx, eax
cmp ebp, 0x10
jae 0x41076b
lea edx, [esp + 0x18]
mov eax, edx
add edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x14]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x410794
dec eax
je 0x410798
sub eax, 2
lea ecx, [esp + 0x18]
jne 0x4107fb
jmp 0x410808
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, eax
cmp ebp, 0x10
jae 0x4107ab
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x14]
sub esi, ecx
je 0x4107d8
cmp ebp, 0x10
jae 0x4107bc
lea eax, [esp + 0x18]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004a8063
add esp, 0x10
cmp esi, eax
jne 0x4107f7
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x49], 0
je 0x410804
test esi, esi
jne 0x41075e
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040ede0
jmp 0x410756
lea ecx, [esp + 0x18]
call fcn.0040d1d0
xor al, al
jmp 0x41080f
lea ecx, [esp + 0x18]
call fcn.0040d1d0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a7314
add esp, 0x30
ret
Function at 0x412000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c26b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x570f20]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 8], 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push 0x4c61b4
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0
call fcn.0040b840
inc eax
push eax
lea ecx, [esp + 0x28]
call fcn.0040d200
lea eax, [esp + 0x20]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push eax
mov ecx, esi
mov byte [esi], 0
call fcn.00411360
cmp dword [esp + 0x34], 0x10
jb 0x412086
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004a684d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x412650
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x16c
mov eax, dword [0x570f20]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
mov esi, dword [esp + 0x17c]
push edi
mov edi, dword [esp + 0x184]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4c5b40
push 0x80000000
call ebp
test eax, eax
je 0x4126a7
xor al, al
jmp 0x412877
movq xmm0, qword [str.BrainWave_Producer_Project]
mov dl, byte [0x4c6216]
mov cx, word [0x4c6214]
movq qword [esp + 0x34], xmm0
movq xmm0, qword [0x4c6204]
movq qword [esp + 0x3c], xmm0
movq xmm0, qword [0x4c620c]
lea eax, [esp + 0x34]
mov byte [esp + 0x4e], dl
movq qword [esp + 0x44], xmm0
mov word [esp + 0x4c], cx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4126f0
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
lea eax, [esp + 0x38]
push eax
push 1
push 0
push 0x4c5776
push ecx
call ebx
test eax, eax
jne 0x4126a0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str..bwprDefaultIcon
push 0x80000000
call ebp
test eax, eax
jne 0x4126a0
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push esi
call fcn.00410ea0
lea ecx, [esp + 0x38]
push ecx
call fcn.00412250
mov esi, 0x10
add esp, 0x20
cmp dword [eax + 0x14], esi
jb 0x412775
mov eax, dword [eax]
push eax
lea edx, [esp + 0x5c]
push str.__s_s_
push edx
call fcn.004a754d
add esp, 0x10
cmp dword [esp + 0x2c], esi
jb 0x41279b
mov eax, dword [esp + 0x18]
push eax
call fcn.004a684d
add esp, 4
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4127a2
sub eax, edx
lea ecx, [eax*4]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x58]
push edx
push 1
push 0
push 0x4c5776
push eax
call ebx
test eax, eax
jne 0x4126a0
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str..bwpr_shellopencommand
push 0x80000000
call ebp
test eax, eax
jne 0x4126a0
lea eax, [esp + 0x54]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412810
mov ecx, dword [str.___1_]
mov dx, word [0x4c61f0]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x54]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412832
sub eax, edx
mov edx, dword [esp + 0x10]
add eax, eax
add eax, eax
push eax
lea ecx, [esp + 0x58]
push ecx
push 1
push 0
push 0x4c5776
push edx
call ebx
test eax, eax
jne 0x4126a0
mov eax, dword [esp + 0x10]
push eax
call esi
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov al, 1
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a7314
add esp, 0x16c
ret
Function at 0x417170
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4c2b78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x570f20]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x990]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4171ab
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esp + 0x28], 0
mov dword [esp + 0x1c], 0
je 0x4171d5
mov eax, dword [esp + 0x24]
mov ecx, dword [0x6bb3dc]
push 0x30
push str.Warning
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41721e
lea edi, [esi + 0x9a8]
push 0xff
mov dword [edi], 2
call fcn.004a5f16
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x9ac], eax
mov edx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x417200
push 0
push 0
push edi
push 0x415b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test ebx, ebx
je 0x417229
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8