joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ac4f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41ac84
cmp edi, dword [esi + 0xc]
jge 0x41ac84
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ac84
cmp edi, dword [eax + 8]
jge 0x41ac84
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41ac86
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41ad32
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41ad66
jmp fcn.00413b91
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x41add7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41aed0
cmp eax, dword [edi + 0xc]
jge 0x41aed0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41ae28
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41aeb9
cmp dword [ebp + 0xc], ebx
je 0x41aeb9
jmp 0x41ae52
push 0x10
call fcn.0041ab1b
cmp eax, ebx
je 0x41ae3e
mov ecx, eax
call fcn.0041ad29
mov esi, eax
jmp 0x41ae40
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41ae69
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41ae79
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41ae8b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00413b91
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040a0f0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41aecb
cmp ecx, dword [esi + 8]
jge 0x41aecb
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41aed1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403e57
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp byte [edi], 0x25
jne 0x403ed4
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
call fcn.00403093
lea eax, [ebp + eax - 0x105]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x25
jne 0x403ebc
and byte [eax], 0
push dword [ebp + 0x1c]
lea eax, [ebp - 0x104]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x10]
push eax
push 0x4016ec
call esi
pop edi
pop esi
leave
ret 0x18

Function at 0x4041d7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40422c
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push esi
lea eax, [ebp + 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404223
cmp dword [ebp + 8], esi
jne 0x404223
cmp dword [ebp - 4], esi
jne 0x404223
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40f197
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419794]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a16b
mov dword [ebp - 0x14], eax
cmp dword [0x453f1c], esi
jne 0x40f28a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f217
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f36a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f36a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f36a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x453f1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x453f20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x453f24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453f2c], eax
test eax, eax
je 0x40f287
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x453f28], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f2af
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f2a2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push 4
pop eax
jmp 0x40f36c
cmp dword [ebp - 0x14], esi
je 0x40f2c4
push dword [0x453f1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f2a9
mov eax, dword [0x453f28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f322
cmp dword [0x453f2c], edi
je 0x40f322
push eax
call ebx
push dword [0x453f2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f322
test eax, eax
je 0x40f322
call ecx
test eax, eax
je 0x40f317
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f317
test byte [ebp - 8], 1
jne 0x40f322
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f352
mov eax, dword [0x453f20]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
call eax
mov esi, eax
test esi, esi
je 0x40f34f
mov eax, dword [0x453f24]
cmp eax, edi
je 0x40f34f
push eax
call ebx
test eax, eax
je 0x40f34f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x453f1c]
call ebx
test eax, eax
je 0x40f36a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f36c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040482b
mov esp, ebp
pop ebp
ret
Function at 0x401500
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x401558
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40154c
jne 0x401590
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x401590
cmp eax, 0x5a
jae 0x40154c
cmp dword [esp + 0x10], 0x40a08ae
sbb eax, eax
inc eax
add esp, 0x98
ret
mov eax, 2
add esp, 0x98
ret
cmp eax, 2
jne 0x401590
mov ecx, dword [esp + 8]
mov eax, 3
cmp ecx, 4
jbe 0x40156f
mov eax, dword [esp]
cmp ecx, 5
jne 0x401595
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jae 0x401582
mov eax, 4
jne 0x401595
mov eax, 5
add esp, 0x98
ret
mov ax, word [esp]
add esp, 0x98
ret
Function at 0x401800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x214]
push edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x14]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Speaker_Configuration
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Speaker_Type
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x118]
mov edx, dword [ebx + 0x10]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax*8]
lea esi, [ebx + 0xc]
add edx, ecx
push esi
mov dword [ebx + 0x10], edx
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x418]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0x409c80
push 0
push 0x4072cc
push eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40191e
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x4072cc
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebx + 0x418]
lea ecx, [esp + 0x10]
push esi
push ecx
push 0
push 0xf003f
push 0
push 0x409c80
push 0
push 0x4072bc
push edx
call edi
test eax, eax
jne 0x40196a
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
add eax, 4
push 4
push eax
push 4
push 0
push 0x4072bc
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x401980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
mov edx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, str.SYSTEMCurrentControlSet_
xor eax, eax
lea ebx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 2
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Settings
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x401a70
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.SpkrCnfg
push edx
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x110
ret
Function at 0x401a80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, str.SYSTEMCurrentControlSet_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Settings
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x120]
xor edi, edi
lea ecx, [esp + 0x1c]
mov byte [esi], al
lea eax, [esp + 0xc]
push eax
push 0x20019
push edi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b8e
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push str.SRCQuality
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b83
mov eax, dword [esp + 0x14]
cmp al, 0xff
je 0x401b8e
mov byte [esi], 1
pop edi
pop esi
and eax, 0xff
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4

Function at 0x401c60
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [ecx + 0xc]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x418]
push edx
push 0
push 0xf003f
push 0
push 0x409c80
push 0
push str.Device_Presence
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401d01
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.Emulated
push edx
mov dword [esp + 0x1c], 1
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push 0x407394
push ecx
mov dword [esp + 0x1c], 1
call esi
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push 4
push edx
push 4
push 0
push 0x407390
push eax
mov dword [esp + 0x1c], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x401d10
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push edi
mov edi, ecx
lea ecx, [esp + 4]
push eax
mov edx, dword [edi + 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0x409c80
push 0
push str.Mixer_Defaults
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401dc2
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.Acceleration
push ecx
call esi
cmp byte [esp + 0x18], 1
jne 0x401d86
mov eax, dword [esp + 8]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push str.SRC_Quality
push eax
jmp 0x401db4
mov ecx, edi
call fcn.00401500
cmp ax, 1
je 0x401da0
mov ecx, edi
call fcn.00401500
cmp ax, 2
jne 0x401db6
mov ecx, dword [esp + 8]
add edi, 8
push 4
push edi
push 4
push 0
push str.SRC_Quality
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0xc
ret 8

Function at 0x401f60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x409ccc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401f7f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x409cc8], 1
mov byte [0x409cc4], bl
jne 0x401fd9
mov ecx, dword [0x40b190]
test ecx, ecx
je 0x401fc7
mov esi, dword [0x40b18c]
sub esi, 4
cmp esi, ecx
jb 0x401fc7
mov eax, dword [esi]
test eax, eax
je 0x401fc0
call eax
mov ecx, dword [0x40b190]
sub esi, 4
cmp esi, ecx
jae 0x401fb2
push 0x40701c
push 0x407014
call fcn.00402010
add esp, 8
push 0x407024
push 0x407020
call fcn.00402010
add esp, 8
test ebx, ebx
jne 0x402000
push ebp
mov dword [0x409ccc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x402030
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4060d0
push 0x403d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x409c9c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x409c98], ecx
shl ecx, 8
add ecx, edx
mov dword [0x409c94], ecx
shr eax, 0x10
mov dword [0x409c90], eax
call fcn.00403c00
test eax, eax
jne 0x40209a
push 0x1c
call fcn.00402200
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403a00
call fcn.004039f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40b188], eax
call fcn.004033b0
mov dword [0x409cd0], eax
test eax, eax
je 0x4020cd
mov eax, dword [0x40b188]
test eax, eax
jne 0x4020d7
push 0xffffffffffffffff
call fcn.00401f20
add esp, 4
call fcn.00403100
call fcn.00403010
call fcn.00401ef0
mov esi, dword [0x40b188]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4021b6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40211e
test al, al
je 0x40211e
and eax, 0xff
push eax
call fcn.00402fb0
add esp, 4
test eax, eax
je 0x4020f8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4020f8
cmp byte [esi], 0x22
jne 0x402127
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x402137
cmp al, 0x20
ja 0x402137
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402127
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x402158
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40215d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401f20
jmp 0x40219b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x402127
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4021b6

Function at 0x402200
Capabilities:
Terminate process

Disassembly:
cmp dword [0x409cd8], 1
jne 0x40220e
call fcn.00403e10
mov eax, dword [esp + 4]
push eax
call fcn.00403e50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4033b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x409de8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x4033f2
call edi
mov esi, eax
test esi, esi
je 0x4033dc
mov eax, 1
jmp 0x4033ed
call ebp
mov ebx, eax
test ebx, ebx
je 0x4034ff
mov eax, 2
mov dword [0x409de8], eax
cmp eax, 1
jne 0x403492
test esi, esi
jne 0x40340b
call edi
mov esi, eax
test esi, esi
je 0x4034ff
cmp word [esi], 0
mov eax, esi
je 0x403425
add eax, 2
cmp word [eax], 0
jne 0x403413
add eax, 2
cmp word [eax], 0
jne 0x403413
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403484
push edi
call fcn.00404640
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403484
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403476
push ebx
call fcn.004045f0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x4034ff
test ebx, ebx
jne 0x4034a3
call ebp
mov ebx, eax
test ebx, ebx
je 0x4034ff
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4034bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4034ab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4034ab
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00404640
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4034dd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret