joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd34c70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x60e000]
push edi
or ebp, 0xffffffff
jmp 0xd34c92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd34c99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd34c88
mov eax, 1
add ebx, ebx
jne 0xd34cab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd34cbc
jne 0xd34cdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd34cdb
dec eax
add ebx, ebx
jne 0xd34cc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd34ca0
add ebx, ebx
jne 0xd34cd7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd34d2d
xor ecx, ecx
sub eax, 3
jb 0xd34cf3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd34d62
sar eax, 1
mov ebp, eax
jmp 0xd34cfe
add ebx, ebx
jne 0xd34cfe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd34ccc
inc ecx
add ebx, ebx
jne 0xd34d0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd34ccc
add ebx, ebx
jne 0xd34d19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd34d0e
jne 0xd34d2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd34d0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd34d4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd34d3e
jmp 0xd34c8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd34d4c
add edi, ecx
jmp 0xd34c8e
pop esi
mov edi, esi
mov ecx, 0x42ab
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd34d6a
cmp byte [edi], 0x24
jne 0xd34d6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xd34d6f
lea edi, [esi + 0x931000]
mov eax, dword [edi]
or eax, eax
je 0xd34de7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x935880]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9359a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd34d9c
mov ecx, edi
jns 0xd34dcb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9359ac]
or eax, eax
je 0xd34de1
mov dword [ebx], eax
add ebx, 4
jmp 0xd34db9
call dword [esi + 0x9359a8]
mov ebp, dword [esi + 0x9359b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd34e1b
sub esp, 0xffffff80
jmp 0x4994f5
Function at 0x404000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x40401a
push 0x404462
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor al, al
jmp 0x40406e
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
jne 0x40402e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
jne 0x40403f
push 0x404472
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor al, al
jmp 0x40406e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCancelIrp]
movzx ecx, al
test ecx, ecx
jne 0x404061
push 0x404482
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor al, al
jmp 0x40406e
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004010b0
mov al, 1
pop ebp
ret 4
Function at 0x405000
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
push 0x405352
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov edx, dword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov eax, dword [edx]
push eax
push 0
push 0
push 0x40
lea ecx, [ebp - 0x18]
push ecx
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x405057
push 0x405374
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4050ad
mov ecx, dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push 0x405386
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4050aa
cmp dword [ebp - 8], 0
jne 0x405096
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004050c0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40507d
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x4050c0
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x4052f8
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 4]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
push edx
lea eax, [ebp - 0x28]
push eax
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x40511d
push 0x40531a
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
jmp 0x405220
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 8]
mov byte [edx + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov word [edx + 0x14], cx
xor eax, eax
mov ecx, dword [ebp - 8]
mov word [ecx + 0x16], ax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
and eax, 0x2014
mov ecx, dword [ebp - 4]
or eax, dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
mov dword [eax + 0x20], edx
push 0x40532c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x20], eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x4051c1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0xc]
jmp 0x405220
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4051ee
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [ebp - 0xc], 0xc0000001
mov eax, dword [ebp - 0xc]
jmp 0x405220
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
and eax, 0xffffff7f
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
push 0x405346
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4052ac
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.004052bc
pop ebp
jmp fcn.00405230
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f090]
jne 0x401abf
repz ret
jmp fcn.00403258

Function at 0x40b4b3
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.0040453b
and dword [ebp - 4], 0
cmp dword [0x443640], 0
mov ebx, eax
jne 0x40b564
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b615
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b615
push eax
call fcn.004044c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x443640], eax
call esi
push eax
call fcn.004044c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x443644], eax
call esi
push eax
call fcn.004044c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x443648], eax
call esi
push eax
call fcn.004044c9
pop ecx
mov dword [0x443650], eax
test eax, eax
je 0x40b564
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004044c9
pop ecx
mov dword [0x44364c], eax
mov eax, dword [0x44364c]
cmp eax, ebx
je 0x40b5bc
cmp dword [0x443650], ebx
je 0x40b5bc
push eax
call fcn.00404544
push dword [0x443650]
mov esi, eax
call fcn.00404544
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b5bc
test edi, edi
je 0x40b5bc
call esi
test eax, eax
je 0x40b5b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b5b3
test byte [ebp - 0xc], 1
jne 0x40b5bc
or dword [ebp + 0x10], 0x200000
jmp 0x40b5f5
mov eax, dword [0x443644]
cmp eax, ebx
je 0x40b5f5
push eax
call fcn.00404544
pop ecx
test eax, eax
je 0x40b5f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b5f5
mov eax, dword [0x443648]
cmp eax, ebx
je 0x40b5f5
push eax
call fcn.00404544
pop ecx
test eax, eax
je 0x40b5f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x443640]
call fcn.00404544
pop ecx
test eax, eax
je 0x40b615
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b617
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402750
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438996
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x45c
cmp eax, 8
push esi
mov esi, ecx
jge 0x402821
mov ecx, dword [0x45a268]
mov dword [esp + 4], ecx
cmp eax, 7
mov dword [esp + 0x468], 0
ja case.default.0x402795
jmp dword [eax*4 + 0x4029e0]
push str.http:__127.0.0.1_
jmp 0x4027d2
push 0x45848c
jmp 0x4027d2
push 0x458464
jmp 0x4027d2
push 0x458434
jmp 0x4027d2
push 0x458414
jmp 0x4027d2
push 0x4583e0
jmp 0x4027d2
push 0x4583b4
jmp 0x4027d2
push 0x458390
lea ecx, [esp + 8]
call fcn.0042cde7
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov dword [esp + 0x468], 0xffffffff
call fcn.0042cca2
xor eax, eax
mov ecx, dword [esp + 0x460]
pop esi
mov dword fs:[0], ecx
add esp, 0x468
ret 4
jne 0x40282c
mov ecx, esi
call fcn.004020e0
jmp 0x402807
cmp eax, 9
jne 0x402842
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
mov eax, 1
jmp 0x402809
cmp eax, 0xa
jne 0x402807
xor ecx, ecx
xor eax, eax
push ecx
push ecx
push eax
push ecx
lea ecx, [esi + 0x124]
call fcn.00403550
push 0
mov ecx, esi
call fcn.0043045c
push 0
lea ecx, [esp + 0xc]
call fcn.00403940
lea ecx, [esp + 8]
mov dword [esp + 0x468], 1
call fcn.0042c62b
push 1
mov ecx, esi
call fcn.0043045c
lea ecx, [esp + 0x424]
mov dword [esp + 0x468], 0x10
call fcn.0043414a
lea ecx, [esp + 0x3e8]
mov byte [esp + 0x468], 0xf
call fcn.0043414a
lea ecx, [esp + 0x3ac]
mov byte [esp + 0x468], 0xe
call fcn.0043414a
lea ecx, [esp + 0x370]
mov byte [esp + 0x468], 0xd
call fcn.0043414a
lea ecx, [esp + 0x334]
mov byte [esp + 0x468], 0xc
call fcn.0043414a
lea ecx, [esp + 0x2f8]
mov byte [esp + 0x468], 0xb
call fcn.0043414a
lea ecx, [esp + 0x2bc]
mov byte [esp + 0x468], 0xa
call fcn.0043414a
lea ecx, [esp + 0x280]
mov byte [esp + 0x468], 9
call fcn.0043414a
lea ecx, [esp + 0x244]
mov byte [esp + 0x468], 8
call fcn.0043414a
lea ecx, [esp + 0x208]
mov byte [esp + 0x468], 7
call fcn.0043414a
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x468], 6
call fcn.0043414a
lea ecx, [esp + 0x190]
mov byte [esp + 0x468], 5
call fcn.0043414a
lea ecx, [esp + 0x154]
mov byte [esp + 0x468], 4
call fcn.0043414a
lea ecx, [esp + 0x118]
mov byte [esp + 0x468], 3
call fcn.0043414a
push fcn.004034b0
mov byte [esp + 0x46c], 2
push 8
lea ecx, [esp + 0x6c]
push 0x14
push ecx
call fcn.0041c8f0
lea ecx, [esp + 8]
mov dword [esp + 0x468], 0xffffffff
call fcn.0042c309
mov eax, 1
jmp 0x402809
Function at 0x4014a0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push esi
push str.SpkrCalU
push 1
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
test eax, eax
mov dword [esi + 0x154], eax
jne 0x4014c2
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014d4
xor eax, eax
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0x401540
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x41f910]
test eax, eax
je 0x401530
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40151f
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esp + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esi + 0x154]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, 1
pop esi
pop ecx
ret
Function at 0x402d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + ebp*4 + 0x160]
push eax
call dword [sym.imp.openal32.dll_alIsSource]
add esp, 4
test al, al
je 0x402f14
mov edi, dword [esp + 0x2c]
push str.WAVE
mov ecx, edi
and ecx, 0xffff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402f14
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x402f14
lea edx, [esp + 0xf]
push ebx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00402110
mov ebx, dword [esp + 0x44]
lea eax, [esp + 0x2b]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
push ebx
call fcn.00401600
lea edx, [esp + 0x43]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
push edi
push ebx
call fcn.00401a60
add esp, 0x4c
cmp edi, 0x82
jne 0x402e9d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebx, dword [sym.imp.openal32.dll_alBufferData]
lea edi, [esi + 0x290]
push ecx
mov ecx, dword [esp + 0x24]
shr edx, 1
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call ebx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esi + 0x294]
shr eax, 1
push eax
add eax, edx
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
call fcn.004023f0
mov ebp, dword [sym.imp.openal32.dll_alSourceQueueBuffers]
add esp, 0x38
mov ebx, 0x40
mov eax, dword [esp + 0x28]
push edi
push 2
mov ecx, dword [esi + eax*4 + 0x160]
push ecx
call ebp
add esp, 0xc
dec ebx
jne 0x402e80
mov ebp, dword [esp + 0x28]
jmp 0x402ef4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x290]
push ecx
push edx
push eax
call dword [sym.imp.openal32.dll_alBufferData]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ecx
call fcn.004023f0
mov edx, dword [esi + 0x290]
mov eax, dword [esi + ebp*4 + 0x160]
push edx
push 0x1009
push eax
call dword [sym.imp.openal32.dll_alSourcei]
add esp, 0x30
mov edi, dword [sym.imp.openal32.dll_alGetError]
call edi
test eax, eax
pop ebx
jne 0x402f14
mov ecx, dword [esi + ebp*4 + 0x160]
push ecx
call dword [sym.imp.openal32.dll_alSourcePlay]
add esp, 4
call edi
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0xc
Function at 0x4170b8
Capabilities:
Access peb ldr_data
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0xc]
mov byte [esp + 0x24], 1
push eax
push str.SOFTWARECreative_TechSpeaker_Calibrator
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41714d
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 1
push ecx
push 0x100
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0x100
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edx
push 0
push str.Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 4]
mov eax, dword [edx - 8]
jmp 0x41717f
push 0x100
push 0x100
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Left
push 0x41f02c
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_operator
push str.SpkrCal.chm
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
push 1
push 0
push 0
push 0x100
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40596d
pop dword [ebp - 0x14]
mov eax, 0x40596d
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x402e87bb
add dword [ebp - 0x24], 0xe23bd90
mov dword [ebp - 0x20], 0x902a152f
sub dword [ebp - 0x20], 0x5df6c8ea
mov dword [ebp - 0x1c], 0x68d3721c
add dword [ebp - 0x1c], 0xe378d212
mov dword [ebp - 0x18], 0xc574b0a
add dword [ebp - 0x18], 0xf3a8b4f6
lea eax, [ebp - 0x24]
push eax
mov eax, 0xae008525
add eax, 0x523feb3b
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x3cbde03d
add dword [ebp - 0x24], 0x37b48919
mov dword [ebp - 0x20], 0x19a367b3
add dword [ebp - 0x20], 0x27c8f9c2
mov dword [ebp - 0x1c], 0x88b16a1d
add dword [ebp - 0x1c], 0xdabe024f
mov dword [ebp - 0x18], 0x2f4eb20f
sub dword [ebp - 0x18], 0x2f4eb20f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x60f42293
sub eax, 0x60b3b193
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3154b
push 0
call eax
mov ecx, 0xff14f002
sub ecx, 0xff14bd8d
xor edx, edx
add edx, eax
mov esi, 0xea02a9a9
add esi, 0x163e5657
add esi, dword [ebp - 0x14]
mov ebx, 0x3b45a14f
add ebx, 0xbeaae2a1
add dword [ebp - 8], ebx
mov edi, dword [esi]
xor dword [ebp - 8], eax
add edi, ebx
xor dword [ebp - 0xc], edi
mov dword [edx], edi
mov dword [ebp - 4], 0x950db9f4
add edx, 0x9e3c649b
add edx, 0x61c39b69
add esi, 0x98a49b15
add esi, 0x675b64ef
loop 0x405a8c
add eax, 0xbca7
xor ebx, ebx
add ebx, eax
add eax, 0xd79aa131
add eax, 0x28655ed4
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40bcc3
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x40df00
call fcn.0040c5e8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40f754
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40bd15
cmp eax, esi
jne 0x40bd08
xor esi, esi
inc esi
mov edi, esi
jmp 0x40bd18
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40bcec
xor esi, esi
inc esi
cmp dword [0x40f758], esi
jne 0x40bd2a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40bd64
cmp dword [0x40f758], ebx
jne 0x40bd5e
mov dword [0x40f758], esi
push 0x401698
push 0x40168c
call fcn.0040be9e
pop ecx
pop ecx
test eax, eax
je 0x40bd64
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40be8e
mov dword [0x40ee70], esi
cmp dword [0x40f758], esi
jne 0x40bd87
push 0x401688
push 0x40164c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40f758], 2
test edi, edi
jne 0x40bd94
xor eax, eax
mov ecx, 0x40f754
xchg dword [ecx], eax
cmp dword [0x40f764], 0
je 0x40bdc0
push 0x40f764
call fcn.0040c440
pop ecx
test eax, eax
je 0x40bdc0
push ebx
push 2
push ebx
mov esi, dword [0x40f764]
mov ecx, esi
call dword [0x4101d0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x40bd4d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp ax, si
ja 0x40be2b
test ax, ax
je 0x40bdfa
test edx, edx
jne 0x40be2b
test ax, ax
je 0x40bdfa
cmp ax, si
ja 0x40bdfa
add ecx, 2
mov dword [ebp - 0x20], ecx
movzx eax, word [ecx]
jmp 0x40bde5
test byte [ebp - 0x3c], 1
je 0x40be06
movzx eax, word [ebp - 0x38]
jmp 0x40be09
push 0xa
pop eax
push eax
push ecx
push ebx
push 0x400000
call main
mov dword [0x40ee6c], eax
cmp dword [0x40ee84], 0
jne 0x40be73
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x40be3c
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x1c], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40bdd4
cmp dword [0x40ee70], 0
jne 0x40be87
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40ee6c]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.004a2000
jmp 0x40bcc3

Function at 0x40c324
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40df40
call fcn.0040c5e8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40c384
cmp eax, 0xffffffff
je 0x40c384
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40c37d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40c37d
cmp edx, 0x10000000
jae 0x40c37d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40c37a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4