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

Disassembly:
push 0x70
push 0x10006400
call fcn.100055a8
xor ebx, ebx
push ebx
mov edi, dword [0x10006058]
call edi
cmp word [eax], 0x5a4d
jne 0x10005319
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10005319
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10005331
cmp eax, 0x20b
je 0x1000531e
mov dword [ebp - 0x1c], ebx
jmp 0x10005345
cmp dword [ecx + 0x84], 0xe
jbe 0x10005319
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1000533f
cmp dword [ecx + 0x74], 0xe
jbe 0x10005319
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x100060c4]
pop ecx
or dword [0x1001a260], 0xffffffff
or dword [0x1001a264], 0xffffffff
call dword [0x100060c8]
mov ecx, dword [0x1001a258]
mov dword [eax], ecx
call dword [0x100060cc]
mov ecx, dword [0x1001a254]
mov dword [eax], ecx
mov eax, dword [0x100060d0]
mov eax, dword [eax]
mov dword [0x1001a25c], eax
call fcn.10005504
call fcn.100055a4
cmp dword [0x1001a090], ebx
jne 0x100053a5
push fcn.100055a4
call dword [0x100060d4]
pop ecx
call fcn.10005592
push 0x10008010
push 0x1000800c
call fcn.1000558c
push 0x10005548
call fcn.100054f2
mov eax, dword [0x1001a250]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1001a24c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x100060dc]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, ebx
jge 0x100053f9
push 8
call fcn.100054c6
pop ecx
push 0x10008008
push section..data
call fcn.1000558c
pop ecx
pop ecx
mov eax, dword [0x100060e4]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10005453
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10005427
cmp al, 0x22
jne 0x10005419
cmp byte [esi], 0x22
jne 0x10005430
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1000543a
cmp al, 0x20
jbe 0x1000542c
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [0x10006064]
test byte [ebp - 0x4c], 1
je 0x1000545e
movzx eax, word [ebp - 0x48]
jmp 0x10005461
cmp byte [esi], 0x20
jbe 0x10005430
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10005453
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.10001340
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1000547e
push esi
call dword [0x100060e8]
call dword [0x100060ec]
jmp 0x100054b3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.100055e3
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x44305f
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x2bd46
push section.packerBY
push 0x4434e3
call fcn.004434a8
cld
mov esi, 0x414000
mov ecx, 4
sub ecx, esi
cmp esi, 0x440290
ja 0x4430a7
lodsb al, byte [esi]
add al, 0x18
sub al, 2
jb 0x44309d
cmp al, 0x25
jne 0x443081
mov al, byte [esi]
and al, 0xf0
cmp al, 0x80
jne 0x443081
inc esi
lea edi, [esi + ecx]
sub dword [esi], edi
add esi, 4
jmp 0x443081
mov edx, 0x400000
lea esi, [edx + 0x4120c]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x44310a
add eax, edx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi]
test ebx, ebx
jne 0x4430c6
mov ebx, edi
add ebx, edx
add edi, edx
push edx
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop edi
pop edx
test eax, eax
je 0x443108
mov ecx, eax
mov eax, dword [ebx]
test eax, eax
je 0x443103
btr eax, 0x1f
jb 0x4430eb
lea eax, [eax + edx + 2]
push ecx
push edx
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
pop edi
pop edx
pop ecx
test eax, eax
je 0x443108
stosd dword es:[edi], eax
add ebx, 4
jmp 0x4430db
add esi, 0x14
jmp 0x4430b2
popal
ret
popal
jmp 0x440130

Function at 0x4012a3
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403df4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403df0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403df0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403df8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40136d
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401354
mov eax, dword [0x403df4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x401e07
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004039fd
call fcn.00403bba
call fcn.00403e9f
call fcn.00404963
call fcn.0040465f
xor edi, edi
cmp dword [0x40b170], edi
je 0x401e39
call fcn.00402fb8
mov dword [0x40b170], edi
call fcn.00404587
cmp dword [esi + 0x40], edi
je 0x401e5a
push 3
push edi
push edi
push str.http:__www.360safe.com_download.html
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401e8c
call fcn.00403635
test eax, eax
je 0x401e68
call fcn.00403783
cmp dword [0x40b174], edi
push 0x40
push 0x40a0b8
jne 0x401e7e
push 0x40a094
jmp 0x401e83
push 0x40a054
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
ret 0xc

Function at 0x40246e
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push edi
mov edi, dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x40251d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call esi
test eax, eax
je 0x40251a
call fcn.00402385
test eax, eax
je 0x402507
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0x208]
push 0x40a13c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x104]
push 1
push eax
push edi
call esi
test eax, eax
push 4
push 0
je 0x402500
lea eax, [ebp - 0x104]
push eax
jmp 0x402501
push edi
call esi
push 2
jmp 0x40251c
push edi
call fcn.00402521
pop ecx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov eax, ecx
jmp 0x40251d
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x402624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x103
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4026a3
cmp eax, esi
ja 0x4026a3
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
cmp byte [ebp + eax - 0x105], 0x5c
pop ecx
je 0x402676
push 0x40a170
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.00403593
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push str.wininit.ini
push eax
push 0x40a15c
push esi
push edi
call fcn.00403531
add esp, 0x14
and byte [edi + esi - 1], 0
push 1
pop eax
pop edi
jmp 0x4026a5
xor eax, eax
pop esi
leave
ret
Function at 0x4026a8
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4026c0
leave
ret
push dword [ebp + 8]
call fcn.0040246e
pop ecx
call fcn.00402385
test eax, eax
je 0x402761
mov dl, byte [0x40b284]
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x208]
push 0x40a174
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
pop edi
je 0x402761
push 4
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
pop eax
leave
ret
Function at 0x402766
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x402929
cmp byte [edi], 0
je 0x402929
cmp byte [edi + 1], 0x3a
jne 0x402929
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x554]
mov dword [ebp - 0x144], 0x80
push edi
push eax
call esi
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x554]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402929
push ebx
mov ebx, 0x104
jmp 0x4027d7
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x118], 0x2e
jne 0x402803
cmp byte [ebp - 0x117], 0
je 0x402902
cmp byte [ebp - 0x117], 0x2e
jne 0x402803
cmp byte [ebp - 0x116], 0
je 0x402902
test byte [ebp - 0x144], 0x10
jne 0x4028b4
mov dl, byte [0x40b284]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x34b]
mov byte [ebp - 0x34c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x247]
mov byte [ebp - 0x248], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x34c]
push dword [ebp + 0xc]
push eax
call esi
lea eax, [ebp - 0x248]
push ebx
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
call edi
test eax, eax
jne 0x402902
lea eax, [ebp - 0x248]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x248]
push eax
call edi
test eax, eax
jne 0x402902
cmp dword [ebp + 0x14], eax
je 0x402902
lea eax, [ebp - 0x248]
push eax
call fcn.0040246e
pop ecx
jmp 0x402902
cmp dword [ebp + 0x10], 0
je 0x402902
push ebx
lea eax, [ebp - 0x450]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x450]
push edi
push eax
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x450]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00402766
add esp, 0x10
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4027d4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
pop ebx
jmp 0x40292b
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x402ce8
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [0x40b27c], esi
jne 0x402cfd
push 1
pop eax
jmp 0x402d30
call fcn.00402385
test eax, eax
push esi
push edi
je 0x402d0c
push 1
jmp 0x402d11
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x402d2e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x402f58
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402fb3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret

Function at 0x40301a
Capabilities:
Delete file
Delete registry key
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov dl, byte [0x40b284]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20f]
mov byte [ebp - 0x210], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x313]
mov byte [ebp - 0x314], dl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov ebx, 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.SYSTEMCurrentControlSetServices
push str._s_s
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00403531
add esp, 0x14
lea eax, [ebp + 8]
mov esi, 0x104
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push str.ImagePath
push eax
push 0x80000002
mov dword [ebp + 8], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403124
lea eax, [ebp - 0x314]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x403124
inc eax
push 0x40
mov dword [ebp - 8], eax
mov al, byte [0x40b284]
mov byte [ebp - 0x10c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers_
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00403593
push dword [ebp - 8]
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00403593
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x210]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40313e
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
push edi
mov edi, str.softwaremicrosoftwindowscurrentversion_run
push dword [esp + 0xc]
push edi
push 0x80000001
call esi
push dword [esp + 0xc]
push edi
push 0x80000002
call esi
pop edi
pop esi
ret
Function at 0x403166
Capabilities:
Modify service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor esi, esi
push 1
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf003f
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
je 0x4031a7
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x4031ab
xor eax, eax
jmp 0x4031c2
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4031c6
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4032b0
push edi
push 0x80
push 3
push edi
push 5
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032b0
push esi
push 0xc8
lea eax, [ebp - 0xd0]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov edx, dword [ecx]
cmp edx, edi
je 0x403239
cmp eax, edx
jne 0x4032a8
mov dword [ebp + 8], edi
lea esi, [ecx + 0xc]
cmp dword [esi - 4], edi
je 0x4032a8
cmp dword [esi], edi
je 0x4032a8
push edi
push edi
push dword [esi - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x403297
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0xd0]
push dword [esi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403297
mov eax, dword [esi]
cmp dword [ebp - 8], eax
jne 0x403297
push eax
lea eax, [ebp - 0xd0]
push dword [esi - 4]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4032a5
mov dword [ebp - 4], 1
inc dword [ebp + 8]
add esi, 0xc
cmp dword [ebp + 8], 5
jl 0x40323f
jmp 0x4032a8
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x403b1e
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0xc]
push eax
push str.AppInit_DLLs
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
mov dword [ebp - 8], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403bb4
mov esi, 0x40a614
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40c]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll__mbstok]
push eax
call esi
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x403bb4
push 2
push 0x40a610
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x403ba7
push str..LOG
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x403baf
lea eax, [ebp - 4]
push eax
push 0
jmp 0x403b7b
push 1
pop eax
jmp 0x403bb6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403bba
Capabilities:
Check if file exists
Get common file path
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov al, byte [0x40b284]
push ebx
push esi
push edi
mov byte [ebp - 0x514], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x513]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov ebx, 0x80000002
push eax
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0xc]
push eax
push str.AppInit_DLLs
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push ebx
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403d36
and dword [ebp - 8], eax
mov esi, 0x40a614
lea edi, [ebp - 4]
lea eax, [ebp - 4]
movsw word es:[edi], word [esi]
push eax
lea eax, [ebp - 0x914]
movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll__mbstok]
push eax
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x403d36
push 2
push 0x40a610
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
test eax, eax
jne 0x403cb4
push str.M.LOG
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x403cb4
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x114]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403cab
lea eax, [ebp - 0x114]
push eax
call fcn.0040246e
pop ecx
mov dword [ebp - 8], 1
jmp 0x403ced
lea eax, [ebp - 0x514]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x403cdb
push 0x40a660
lea eax, [ebp - 0x514]
push 0x400
push eax
call fcn.00403593
push esi
lea eax, [ebp - 0x514]
push 0x400
push eax
call fcn.00403593
lea eax, [ebp - 4]
push eax
push 0
call edi
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x403c4b
cmp dword [ebp - 8], eax
je 0x403d36
lea eax, [ebp - 0x514]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x514]
push eax
push 1
pop esi
push esi
push str.AppInit_DLLs
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [0x40b170], esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x403d3d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dl, byte [0x40b284]
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], dl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x208]
push eax
push str._s_realplayer.exe
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00403531
lea eax, [ebp - 0x104]
push eax
call fcn.00402437
add esp, 0x14
test eax, eax
je 0x403dc1
push 1
pop eax
jmp 0x403e9b
lea eax, [ebp - 0x208]
push eax
push str._s_nbbho.dll
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00403531
lea eax, [ebp - 0x104]
push eax
call fcn.00402437
add esp, 0x14
test eax, eax
jne 0x403db9
lea eax, [ebp - 0x208]
push eax
push str._s_brlmon.dll
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00403531
lea eax, [ebp - 0x104]
push eax
call fcn.00402437
add esp, 0x14
test eax, eax
jne 0x403db9
push str.CLSID295CD217_AD34_4B66_91BA_48D5EFD9CA20
push 0x80000000
call fcn.00402390
pop ecx
test eax, eax
pop ecx
jne 0x403db9
lea eax, [ebp - 0x208]
push eax
push str._sIeFilter.dll
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00403531
lea eax, [ebp - 0x104]
push eax
call fcn.00402437
add esp, 0x14
test eax, eax
jne 0x403db9
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.004023bd
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
push str._sTencentQQMessenger.exe
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00403531
lea eax, [ebp - 0x104]
push eax
call fcn.00402437
add esp, 0x14
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret