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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREConexantMicTrayHotkey
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10040b8b
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push str.HIDMake0
push eax
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040b8b
lea esi, [eax + 1]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10040ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, 0xffffffff
je 0x10040f51
push edi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp + 0x10]
mov edi, eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test esi, esi
je 0x10040f50
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100411c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x10041220
push 0x20019
push 2
push edi
push 1
add ecx, 4
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x10041220
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004120a
lea edi, [eax + 1]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x10041220
mov eax, dword [ebx]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10
Function at 0x10041d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100f38c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edi, dword [0x100e8014]
xor ebx, ebx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x248], edi
mov esi, 0x80004005
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x234], 0x1c
call fcn.1001f9a0
lea eax, [ebp - 0x250]
push eax
push 1
lea ecx, [ebp - 0x244]
push ecx
push str.Media
mov dword [ebp - 0x250], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameW]
test eax, eax
je 0x10041f25
push 2
push ebx
push ebx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10041f25
lea eax, [ebp - 0x234]
push eax
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10041f25
inc dword [ebp - 0x254]
push 0x20019
push 2
push 0
push 1
lea ecx, [ebp - 0x234]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x10041ed8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.MatchingDeviceId
push esi
mov dword [ebp - 0x250], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041ed8
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x218]
push edx
push eax
lea ecx, [ebp - 0x248]
call fcn.100014f0
lea ecx, [ebp - 0x248]
call fcn.10001480
mov edi, dword [ebp - 0x248]
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [edi - 8], 0
jl 0x10041ed8
push str.VEN_14F1
push edi
call fcn.100560cb
add esp, 8
test eax, eax
je 0x10041ed8
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x10041ef7
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10041e29
jmp 0x10041f13
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x248]
push edx
call fcn.1001e0e0
mov dword [ebp - 0x24c], 0
cmp esi, 0xffffffff
je 0x10041f1f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x24c]
lea eax, [edi - 0xc]
cmp eax, dword [0x100e8010]
je 0x10041f47
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10041f47
push edi
call fcn.10055c11
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10055898
mov esp, ebp
pop ebp
ret
Function at 0x10041f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070f8b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x100f38c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov edi, dword [0x100e8014]
xor ebx, ebx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x248], edi
mov esi, 0x80004005
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x234], 0x1c
call fcn.1001f9a0
lea eax, [ebp - 0x250]
push eax
push 1
lea ecx, [ebp - 0x244]
push ecx
push str.Media
mov dword [ebp - 0x250], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameW]
test eax, eax
je 0x10042135
push 2
push ebx
push ebx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10042135
lea eax, [ebp - 0x234]
push eax
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10042135
inc dword [ebp - 0x254]
push 0x20019
push 2
push 0
push 1
lea ecx, [ebp - 0x234]
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x100420e8
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.MatchingDeviceId
push esi
mov dword [ebp - 0x250], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100420e8
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x218]
push edx
push eax
lea ecx, [ebp - 0x248]
call fcn.100014f0
lea ecx, [ebp - 0x248]
call fcn.10001480
mov edi, dword [ebp - 0x248]
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [edi - 8], 0
jl 0x100420e8
push str.VEN_8086
push edi
call fcn.100560cb
add esp, 8
test eax, eax
je 0x100420e8
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x10042107
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10042039
jmp 0x10042123
mov ecx, dword [ebp - 0x258]
lea edx, [ebp - 0x248]
push edx
call fcn.1001e0e0
mov dword [ebp - 0x24c], 0
cmp esi, 0xffffffff
je 0x1004212f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x24c]
lea eax, [edi - 0xc]
cmp eax, dword [0x100e8010]
je 0x10042157
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10042157
push edi
call fcn.10055c11
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10055898
mov esp, ebp
pop ebp
ret
Function at 0x100463b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100f38c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x206
xor ebx, ebx
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov esi, 1
mov word [ebp - 0x20c], ax
call fcn.10056000
push 0x7b
push edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call fcn.100575f1
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioCapture
lea edx, [ebp - 0x20c]
push str._s_sFxProperties
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
push esi
lea eax, [ebp - 0x20c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x21c]
call fcn.10001f80
cmp eax, ebx
je 0x1004645c
push 0x101
lea ecx, [ebp - 0x20c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x21c]
call fcn.10001f80
cmp eax, ebx
jne 0x100464c3
mov edi, dword [ebp - 0x21c]
mov eax, 4
lea edx, [ebp - 0x224]
push edx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x220]
push ecx
push ebx
push str.B4A2C5A8_D979_4939_B4D5_AA85D6F08162_0
push edi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100464bc
mov eax, dword [ebp - 0x210]
dec eax
je 0x100464b7
dec eax
je 0x100464b3
dec eax
jne 0x100464bc
lea esi, [eax + 4]
jmp 0x100464bc
xor esi, esi
jmp 0x100464bc
mov esi, 2
cmp edi, ebx
je 0x100464d4
push edi
jmp 0x100464ce
mov eax, dword [ebp - 0x21c]
cmp eax, ebx
je 0x100464d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055898
mov esp, ebp
pop ebp
ret 4

Function at 0x10048920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x10048980
mov ecx, dword [esi + 4]
lea eax, [esi + 0x10]
push eax
push ecx
call fcn.100589fe
add esp, 8
test eax, eax
jne 0x10048978
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [ebp - 8]
push 8
push eax
call fcn.100589e1
add esp, 0x10
cmp eax, 1
jne 0x10048978
cmp dword [ebp - 8], 0x61746164
jne 0x10048978
mov eax, dword [esi + 0x18]
cmp dword [ebp - 4], eax
jne 0x10048978
mov dword [esi + 0x1c], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x88890008
mov dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10048990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x10048aa7
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100489b2
mov eax, 0x80004003
pop esi
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x100489c5
pop ebx
mov eax, 0x80070057
pop esi
pop ebp
ret 8
push edi
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x1c]
jbe 0x10048a12
mov edi, edi
mov eax, dword [esi + 4]
mov edi, dword [esi + 0x1c]
mov edx, dword [ebp + 8]
push eax
push edi
push 1
push edx
call fcn.100589e1
add esp, 0x10
cmp eax, edi
jne 0x10048a60
add dword [ebp + 8], edi
sub ebx, edi
cmp dword [esi + 0x48], 0
mov dword [esi + 0x1c], 0
je 0x10048a6f
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
jne 0x10048a96
cmp ebx, dword [esi + 0x1c]
ja 0x100489d0
test ebx, ebx
jne 0x10048a2d
push 0x130
push str.wavefile.cpp
push str.numBytesToCopy___0
call fcn.10057bcc
add esp, 0xc
cmp ebx, dword [esi + 0x1c]
jbe 0x10048a49
push 0x131
push str.wavefile.cpp
push str.numBytesToCopy___m_dataBytesRemaining
call fcn.10057bcc
add esp, 0xc
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
push edx
push ebx
push 1
push eax
call fcn.100589e1
add esp, 0x10
cmp eax, ebx
je 0x10048aa0
pop edi
mov eax, 0x88890008
pop ebx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
mov ecx, dword [ebp + 8]
xor eax, eax
cmp word [esi + 0x2e], 8
push ebx
setne al
dec eax
and eax, 0x80
push eax
push ecx
call fcn.10056000
add esp, 0xc
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 8
mov eax, dword [esi + 8]
pop edi
pop ebx
pop esi
pop ebp
ret 8
sub dword [esi + 0x1c], ebx
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret 8
Function at 0x10054c4e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x100f97e4], 0
push esi
push edi
jne 0x10054bc4
call fcn.10054b30
test eax, eax
je 0x10054c09
mov eax, dword [0x100f97e4]
cmp eax, 1
jne 0x10054be5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10054c09
jmp 0x10054c4b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10054c4b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10054c0d
xor eax, eax
jmp 0x10054c4b
mov eax, dword [esi]
push dword [0x100f97e4]
call edi
mov edi, eax
test edi, edi
je 0x10054c2f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10054c4b
lea edi, [esi + 0xff0]
push esi
push dword [0x100f97e4]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10054c35
mov eax, esi
pop edi
pop esi
ret
jmp 0x10054bb0

Function at 0x10055898
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100f38c4]
jne 0x100558a2
repz ret
jmp fcn.1005bc2a
Function at 0x100606ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100f38c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1005be43
and dword [ebp - 0x14], 0
cmp dword [0x100fa598], 0
mov dword [ebp - 0x18], eax
jne 0x100607a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10060848
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10060848
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100fa598], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100fa59c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100fa5a0], eax
call edi
push eax
call esi
mov dword [0x100fa5a8], eax
test eax, eax
je 0x100607a0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100fa5a4], eax
mov eax, dword [0x100fa5a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100607f9
cmp dword [0x100fa5a8], ecx
je 0x100607f9
push eax
call esi
push dword [0x100fa5a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100607f9
test ebx, ebx
je 0x100607f9
call edi
test eax, eax
je 0x100607f0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100607f0
test byte [ebp - 8], 1
jne 0x100607f9
or dword [ebp + 0x10], 0x200000
jmp 0x1006082c
mov eax, dword [0x100fa59c]
cmp eax, dword [ebp - 0x18]
je 0x1006082c
push eax
call esi
test eax, eax
je 0x1006082c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1006082c
mov eax, dword [0x100fa5a0]
cmp eax, dword [ebp - 0x18]
je 0x1006082c
push eax
call esi
test eax, eax
je 0x1006082c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100fa598]
call esi
test eax, eax
je 0x10060848
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1006084a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10055898
leave
ret
Function at 0x402683
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.0040e674
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.0040e748
test eax, eax
jne 0x40271a
push 0x4131f8
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040e674
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.0040e5f4
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x4027d5
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x413054], 0
je 0x40284c
cmp byte [0x414930], 0
je 0x40284c
lea edx, [esp + 8]
mov eax, 0x414930
call fcn.004027a4
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x40284c
mov eax, ebx
call fcn.0040e674
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x402854
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x413054], 0
je 0x4028cd
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027a4
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4028cd
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4028c5
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040e6f4
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029c0
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x4029ca
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x4019f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401a40
lea ebx, [ebx]
cmp esi, eax
jae 0x401a44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a30
cmp esi, eax
jb 0x401a4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401ad0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x12b64
call fcn.0043dd40
mov eax, dword [0x46cc48]
xor eax, esp
mov dword [esp + 0x12b60], eax
mov eax, dword [esp + 0x12b70]
mov dword [esp + 4], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x12b6c]
cmp dword [esp + 0x12b78], eax
jbe 0x401be0
lea ebx, [ebx]
mov byte [esp + eax + 0xc], al
inc eax
cmp eax, 0x12b57
jb 0x401b10
push ebx
push esi
push edi
mov edi, dword [esp + 0x12b7c]
xor esi, esi
xor ecx, ecx
lea ebx, [ebx]
xor edx, edx
mov eax, ecx
div edi
mov bl, byte [esp + ecx + 0x18]
movzx eax, bl
inc ecx
movzx edx, byte [edx + ebp]
add edx, esi
add eax, edx
xor edx, edx
mov esi, 0x12b57
div esi
mov esi, edx
mov al, byte [esp + esi + 0x18]
mov byte [esp + ecx + 0x17], al
mov byte [esp + esi + 0x18], bl
cmp ecx, 0x12b57
jb 0x401b30
mov ebp, dword [esp + 0x14]
xor edi, edi
xor esi, esi
lea ecx, [ecx]
xor edx, edx
mov ecx, 0x12b57
lea eax, [esi + 1]
div ecx
dec dword [esp + 0x12b84]
push 0
push 0
mov esi, edx
mov bl, byte [esp + esi + 0x20]
movzx eax, bl
add eax, edi
xor edx, edx
div ecx
mov al, byte [ebp]
mov byte [esp + 0x1b], al
mov edi, edx
movzx edx, byte [esp + edi + 0x20]
mov byte [esp + esi + 0x20], dl
mov byte [esp + edi + 0x20], bl
call dword [sym.imp.USER32.dll_GetSystemMenu]
movzx eax, byte [esp + esi + 0x18]
movzx ecx, bl
add eax, ecx
cdq
mov ecx, 0x12b57
idiv ecx
inc ebp
movzx edx, byte [esp + edx + 0x18]
xor dl, byte [esp + 0x13]
cmp dword [esp + 0x12b84], 0
mov byte [ebp - 1], dl
jne 0x401b70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x12b64]
pop ebp
xor ecx, esp
call fcn.0043dbc3
add esp, 0x12b64
ret

Function at 0x401c00
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
call esi
test eax, eax
jne 0x401c26
pop esi
pop ecx
ret
push 8
push 1
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call esi
neg eax
sbb eax, eax
neg eax
pop esi
pop ecx
ret
Function at 0x406540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x4526c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x46cc48]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46cc48]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
push 8
xor ebx, ebx
push str.ZMO4zpwE
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00402640
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push ebx
mov al, 0x6c
push ebx
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x50], 0x6b
mov byte [esp + 0x51], 0x65
mov byte [esp + 0x52], 0x72
mov byte [esp + 0x53], 0x6e
mov byte [esp + 0x54], 0x65
mov byte [esp + 0x55], al
mov byte [esp + 0x56], 0x33
mov byte [esp + 0x57], 0x32
mov byte [esp + 0x58], 0x2e
mov byte [esp + 0x59], 0x64
mov byte [esp + 0x5a], al
mov byte [esp + 0x5b], al
mov byte [esp + 0x5c], bl
call ebp
mov esi, eax
push 0x1a4b89aa
push esi
call fcn.00402860
mov edx, dword [esp + 0x38]
lea eax, [edx*8 - 0x5f27204]
push eax
push esi
call fcn.00402860
push 0x31cb1743
push esi
mov edi, eax
call fcn.00402860
add esp, 0x18
push 0xa
push 0x4b60
push ebx
mov dword [esp + 0x24], eax
call edi
mov esi, eax
cmp esi, ebx
jne 0x40664c
cmp dword [esp + 0x34], 0x10
jb 0x406645
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00408955
add esp, 4
xor al, al
jmp 0x406732
push esi
push ebx
call dword [esp + 0x20]
mov edi, eax
cmp edi, ebx
jne 0x406673
cmp dword [esp + 0x34], 0x10
jb 0x406645
mov edx, dword [esp + 0x20]
push edx
call fcn.00408955
add esp, 4
xor al, al
jmp 0x406732
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
push ebx
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x44], 0x74
mov byte [esp + 0x45], 0x61
mov byte [esp + 0x46], 0x73
mov byte [esp + 0x47], 0x6b
mov byte [esp + 0x48], 0x6d
mov byte [esp + 0x49], 0x67
mov byte [esp + 0x4a], 0x72
mov byte [esp + 0x4b], 0x2e
mov byte [esp + 0x4c], 0x65
mov byte [esp + 0x4d], 0x78
mov byte [esp + 0x4e], 0x65
mov byte [esp + 0x4f], bl
call ebp
test eax, eax
jne 0x4066d2
lea ecx, [esp + 0x1c]
call fcn.00402250
xor al, al
jmp 0x406732
push ebx
push 0x456e90
call fcn.0043ddcd
add esp, 4
push eax
push str.8192
call fcn.0043ddcd
add esp, 4
or eax, 0x1000
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov ebp, eax
cmp ebp, ebx
je 0x4066c5
push esi
push edi
push ebp
call fcn.0043dde0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
push esi
push ebp
push ecx
push edx
call fcn.00401ad0
add esp, 0x1c
call ebp
lea ecx, [esp + 0x1c]
call fcn.00402250
mov al, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0043dbc3
add esp, 0x50
ret