joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b3a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x403b68
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403b6f
cmp ebx, dword [eax + 4]
jae 0x403b6f
xor eax, eax
jmp 0x403d5f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403b80
xor eax, eax
inc eax
jmp 0x403d5e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403b96
cmp ecx, edx
jae 0x403cdb
cmp dword [eax + 4], 0
je 0x403b9f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403b87
cmp dword [ebp + 8], 0
je 0x403bc1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403cdb
cmp eax, esi
jae 0x403cdb
mov eax, dword [0x408998]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403be6
cmp dword [esi*4 + 0x4089a0], edi
je 0x403cdf
inc esi
cmp esi, eax
jl 0x403bd4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403d5b
cmp dword [ebp - 8], 0x1000000
jne 0x403d5b
test byte [ebp - 0xc], 0xcc
je 0x403c64
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403d5b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403d5b
cmp word [eax + 0x18], 0x10b
jne 0x403d5b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403d5b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403c64
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403c64
test byte [ecx + 0x27], 0x80
jne 0x403cdb
push 1
push 0x4089e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403b78
mov ecx, dword [0x408998]
test ecx, ecx
mov edx, ecx
jle 0x403c98
lea eax, [ecx*4 + 0x40899c]
cmp dword [eax], edi
je 0x403c98
dec edx
sub eax, 4
test edx, edx
jg 0x403c8c
test edx, edx
jne 0x403cc9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403ca5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403cbd
lea eax, [edx*4 + 0x4089a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403cab
cmp ecx, 0x10
jge 0x403cc9
inc ecx
mov dword [0x408998], ecx
push 0
push 0x4089e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403b78
xor eax, eax
jmp 0x403d5e
test esi, esi
jle 0x403b78
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4089e0
call ebx
test eax, eax
jne 0x403b78
cmp dword [esi*4 + 0x4089a0], edi
je 0x403d35
mov eax, dword [0x408998]
lea esi, [eax - 1]
test esi, esi
jl 0x403d23
cmp dword [esi*4 + 0x4089a0], edi
je 0x403d1f
dec esi
jns 0x403d13
test esi, esi
jge 0x403d33
cmp eax, 0x10
jge 0x403d2e
inc eax
mov dword [0x408998], eax
lea esi, [eax - 1]
jmp 0x403d35
je 0x403d4d
xor ecx, ecx
test esi, esi
jl 0x403d4d
lea eax, [ecx*4 + 0x4089a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403d3b
push 0
push 0x4089e0
call ebx
jmp 0x403b78
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40528c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403650
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405327
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x408828]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405327
cmp eax, 1
je 0x405348
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405327
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4052f4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405323
xor eax, eax
inc eax
jmp 0x405367
cmp edi, eax
jae 0x40532b
xor eax, eax
jmp 0x405367
cmp eax, esi
jae 0x405332
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x408828]
jmp 0x40534b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53fd30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4051a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x4c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402c38
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.0053ff50
movsx eax, ax
test eax, eax
je 0x53fec6
mov dword [ebp - 4], 4
call fcn.00413e1c
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x3c]
push ecx
push 0x28
mov edx, dword [ebp - 0x50]
push edx
call fcn.00413dd0
mov dword [ebp - 0x54], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x54], 0
sete al
neg eax
movsx ecx, ax
test ecx, ecx
je 0x53fdf0
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00413eac
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 7
lea eax, [ebp - 0x34]
push eax
push 0x41ac08
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x4139c8
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00414244
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x50], 0
sete al
neg eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
movsx eax, word [ebp - 0x58]
test eax, eax
je 0x53fe69
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00413eac
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x2c], 2
mov dword [ebp - 4], 0xc
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004142e4
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x50], 0
jne 0x53fec6
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00413eac
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0xffffffffffffffff
push 1
call fcn.00413c78
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0x11
push 0
mov edx, dword [ebp - 0x44]
push edx
call fcn.00413e68
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
push 0x53ff35
jmp 0x53ff34
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x645712a5
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x1503324b
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a39
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.00431960
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x401ba7
cmp dword [esp + 0x14], eax
je 0x401ba7
lea esi, [esp + 0x20]
call fcn.00401170
mov ecx, dword [esp + 0x14]
push ecx
mov edx, esi
push edx
call fcn.00401470
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
test eax, eax
jle 0x401b7f
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jle 0x401b6c
lea esp, [esp]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
imul eax, ebx
cdq
imul ecx, ebp
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [esp + 0x28]
movzx edi, byte [ecx + eax + 3]
movzx esi, byte [ecx + eax]
add ecx, eax
imul esi, edi
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
add esi, 0x7f
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
inc ebp
cmp ebp, dword [esp + 0x18]
mov byte [ecx + 2], al
jl 0x401ae0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x401ad0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push ecx
push eax
mov ebx, eax
mov eax, dword [esp + 0x60]
lea esi, [esp + 0x2c]
call fcn.00401380
mov ecx, esi
call fcn.004011e0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 4
Function at 0x401cf0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
sub esp, 0x20
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffff7f
or eax, 0x40000
cmp dword [0x45bd24], 1
jne 0x401d1b
or eax, 8
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0xffffffffffffffec
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
lea ecx, [esp]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esp + 0x24], 0
mov eax, 0x49
je 0x401d64
mov eax, 0x4b
xor ecx, ecx
cmp dword [0x45bd24], 1
jne 0x401d72
or ecx, 0xffffffff
push eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
push 0
add eax, dword [esp + 0x24]
push 0
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
mov edx, dword [esi]
sar eax, 1
push eax
mov eax, dword [edx + 0x48]
push ecx
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 1
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x20
ret 4
Function at 0x403d30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push edi
mov ecx, esi
call edx
test eax, eax
jne 0x403d4e
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 4]
push 0x40
mov edx, ecx
sub edx, eax
sub eax, ecx
add eax, dword [esp + 0x20]
push edx
mov edx, edi
sub edx, ebx
push edx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
sub eax, edi
add eax, dword [esp + 0x28]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.00403e70
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
mov byte [esi + 0x1071], 0
pop esi
mov al, 1
pop ebx
add esp, 0x18
ret

Function at 0x403de0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push esi
mov esi, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
test eax, eax
jne 0x403dfa
xor al, al
pop esi
add esp, 0x18
ret
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push 0x40
push ecx
push edx
mov edx, dword [eax + 0x48]
push 0
push 0
push 0
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
call fcn.00403e70
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov byte [esi + 0x1071], 1
mov al, 1
pop esi
add esp, 0x18
ret

Function at 0x4045a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4045c8
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push esi
lea ecx, [esp + 8]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x44bde8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x404670
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x446820
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4571a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00404d30
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x10]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40470e
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
mov edx, dword [0x45a060]
mov eax, dword [edx + 0xc]
mov ecx, 0x45a060
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x28]
push str._autorun
push ecx
push str.__s___s
lea edi, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.00405d90
mov esi, dword [esp + 0x20]
mov eax, dword [esi - 0xc]
add esp, 0xc
lea edx, [eax + eax]
mov eax, dword [esp + 0xc]
push edx
push esi
push 1
push 0
push 0x44bde8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0xc]
push ecx
test eax, eax
je 0x4047d7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404795
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404826
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x404840
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.00404d30
mov edx, dword [esp]
lea ecx, [esp + 4]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x404899
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404893
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp + 4]
push 0x44bde8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
mov eax, dword [esp]
je 0x4048c2
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404887
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
add esp, 8
ret

Function at 0x4049b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [0x45aee4]
push 0x9c
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov ebx, eax
test ebx, ebx
je 0x404ac6
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
push 0x400
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_RemoveMenu]
mov ebp, dword [sym.imp.USER32.dll_DestroyMenu]
push ebx
call ebp
test edi, edi
je 0x404ac6
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push 0
push ecx
push edx
push 0x102
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push edi
mov ebx, eax
call ebp
mov eax, ebx
sub eax, 0x800d
je 0x404a88
sub eax, 1
jne 0x404ac6
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 0x104
push 0x44be0c
push 0x44be14
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x404ac6
mov eax, esi
call fcn.00404ad0
mov eax, dword [esi]
mov edx, dword [eax + 0x44]
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 1
mov ecx, esi
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x1070], 0
je 0x404abc
mov dword [esi + 0xcc0], 0
add esi, 0xcb4
push esi
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x404b00
Capabilities:
Hide graphical window

Disassembly:
sub eax, 0x202
push esi
mov esi, ecx
je 0x404b1f
sub eax, 1
je 0x404b1f
sub eax, 2
jne 0x404b51
mov eax, esi
call fcn.004049b0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
push 5
call edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x1070], 0
je 0x404b51
mov dword [esi + 0xcc0], 0
add esi, 0xcb4
push esi
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
xor eax, eax
pop esi
ret

Function at 0x404b60
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
mov eax, dword [0x45aee4]
push 0x97
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push eax
call fcn.00404940
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0
mov ecx, esi
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x4063f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406407
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406438
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x406434
cmp esi, eax
jae 0x406438
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x406424
cmp esi, eax
jb 0x40643e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret