joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e270
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x47e278
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x47e46a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x47e480
mov eax, esi
call fcn.0047c0fc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404208
lea ecx, [ebp - 0x10]
mov edx, 0x47e494
mov eax, esi
call fcn.0047c0fc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404208
lea ecx, [ebp - 0x14]
mov edx, 0x47e4ac
mov eax, esi
call fcn.0047c0fc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404208
lea ecx, [ebp - 0x18]
mov edx, 0x47e4c8
mov eax, esi
call fcn.0047c0fc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404208
lea ecx, [ebp - 0x1c]
mov edx, 0x47e4e4
mov eax, esi
call fcn.0047c0fc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404208
lea ecx, [ebp - 0x24]
mov edx, 0x47e4fc
mov eax, esi
call fcn.0047c0fc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004089dc
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408f24
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x47e514
mov eax, esi
call fcn.0047c0fc
mov eax, dword [ebp - 0x28]
call fcn.00475a98
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x47e524
mov eax, esi
call fcn.0047c0fc
mov eax, dword [ebp - 0x2c]
call fcn.00475a98
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x47e53c
mov eax, esi
call fcn.0047c0fc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408f24
inc eax
je 0x47e40d
lea ecx, [ebp - 0x34]
mov edx, 0x47e53c
mov eax, esi
call fcn.0047c0fc
mov eax, dword [ebp - 0x34]
call fcn.00408ee8
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a99c
fstp qword [ebp - 0x3c]
wait
call fcn.0040ad00
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x47e428
lea ecx, [ebp - 0x40]
mov edx, 0x47e53c
mov eax, esi
call fcn.0047c0fc
mov eax, dword [ebp - 0x40]
call fcn.00475a98
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x47e54c
mov eax, esi
call fcn.0047c0fc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e471
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004041d8
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004041d8
ret
Function at 0x48518c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4851e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048517c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00474608
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00474208
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4851ed
lea eax, [ebp - 4]
call fcn.004041b4
ret
Function at 0x4b96f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
test dl, dl
je 0x4b9708
push 5
mov eax, ebx
call fcn.00450d54
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret
push 0
mov eax, ebx
call fcn.00450d54
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4142bb
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], edi
mov dword [0x41cf60], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 0x3c]
mov dword [edi], str.yyfm0529
mov dword [edi + 4], str.yymusic05.exe
mov dword [edi + 8], str.YYSpeed2.exe
mov dword [edi + 0xc], str.Unins.exe
mov dword [edi + 0x10], str.PlayerUpdate.exe
mov dword [edi + 0x2c], 0xa
mov word [edi + 0x30], bx
mov byte [edi + 0x32], bl
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], eax
mov byte [eax], bl
mov byte [ebp - 4], 1
push 0xa0
mov dword [edi + 0x7c], 0x1010101
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], ebx
call fcn.0040822a
add esp, 4
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4010aa
push eax
call fcn.00402c10
jmp 0x4010ac
xor eax, eax
lea esi, [ebp - 0x58]
mov dword [edi + 0x34], eax
call fcn.00401110
lea esi, [edi + 0x38]
call fcn.004025d0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x4010d2
push eax
call fcn.004087c1
add esp, 4
push ebx
lea edx, [ebp - 0x68]
push edx
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040805e
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0040c670
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401180
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
mov dword [esi], eax
mov byte [eax], 0
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401191
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3f
jl 0x4011b8
lea edx, [edi + 1]
push edx
push 0
mov dword [esi], 0
call fcn.00408a91
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.004087a7
mov edx, dword [esi]
add esp, 0xc
push 0x417314
mov eax, esi
mov byte [edi + edx], 0
call fcn.00402430
push str.yyfm0529
mov eax, esi
call fcn.00402430
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0040805e
mov esp, ebp
pop ebp
ret
Function at 0x401950
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00401c10
mov eax, dword [0x41cf60]
mov ecx, dword [eax + 8]
push ecx
call fcn.00401b00
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 1
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401997
push 0
push eax
call esi
mov edx, dword [0x41cf60]
mov eax, dword [edx + 4]
push eax
call fcn.00401b00
push eax
push 0
push 1
call ebx
test eax, eax
je 0x4019b6
push 0
push eax
call esi
mov ecx, dword [0x41cf60]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00401b00
push eax
push 0
push 1
call ebx
test eax, eax
je 0x4019d5
push 0
push eax
call esi
push str.YyfmPlay.exe
call fcn.00401b00
push eax
push 0
push 1
call ebx
test eax, eax
je 0x4019ef
push 0
push eax
call esi
push str.YYNEWS.exe
call fcn.00401b00
push eax
push 0
push 1
call ebx
test eax, eax
je 0x401a09
push 0
push eax
call esi
mov edi, dword [edi + 0x38]
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 0xb4], 0
test edi, edi
jne 0x401a28
mov edi, 0x4173a4
mov ecx, edi
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401a30
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x401a5e
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0xb8], 0
call fcn.00408a91
add esp, 8
mov dword [ebp - 0xb8], eax
push esi
push edi
push eax
call fcn.004087a7
mov ecx, dword [ebp - 0xb8]
add esp, 0xc
push str.SysConfig.ini
lea eax, [ebp - 0xb8]
mov byte [esi + ecx], 0
call fcn.00402430
push 0x64
lea edx, [ebp - 0x70]
push 0
push edx
call fcn.0040c670
mov eax, dword [ebp - 0xb8]
add esp, 0xc
push eax
push 0x64
lea ecx, [ebp - 0x70]
push ecx
push str.YYSpeed2.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x70]
push edx
call fcn.00401b00
push eax
push 0
push 1
call ebx
test eax, eax
je 0x401ad2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xb4]
cmp eax, ecx
je 0x401aeb
push eax
call fcn.004087c1
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040805e
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.0040f6b0
mov eax, dword [0x41b024]
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 0x401b4d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040805e
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 0x401bd4
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.00408070
add esp, 8
test eax, eax
jne 0x401be9
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x401b65
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040805e
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.0040805e
mov esp, ebp
pop ebp
ret 4

Function at 0x401c10
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41b024]
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 0x401c56
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x401c66
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.0040805e
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 0x401cb4
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.0040805e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040805e
mov esp, ebp
pop ebp
ret
Function at 0x402170
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x41b024]
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.0040fde6
add esp, 8
lea ecx, [ebp - 0x418]
push ecx
push 0x4152cc
push 1
push 0
push 0x4152dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4022d9
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x41c]
push ecx
push 0x4152ec
push eax
call edx
test eax, eax
js 0x4022cb
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test ebx, ebx
jne 0x40220f
mov edx, dword [0x41c210]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x402216
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
test esi, esi
je 0x40222b
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
jmp 0x402238
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test edi, edi
je 0x40224d
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 0x402266
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 0x4022a1
push eax
mov eax, dword [ebp - 0x420]
push eax
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call fcn.004082aa
add esp, 0x10
jmp 0x40232b
push 0x5c
test ebx, ebx
je 0x4022aa
push ebx
jmp 0x4022b1
mov edx, dword [0x41c210]
push edx
call fcn.00408620
add esp, 8
test eax, eax
jne 0x4022ec
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.0040805e
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.004082aa
lea eax, [ebp - 0x108]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402311
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.0040805e
mov esp, ebp
pop ebp
ret 8
Function at 0x402b70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push edi
push str.SetupApp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402bc3
push 0x88
call fcn.0040822a
add esp, 4
test eax, eax
je 0x402bac
mov edi, eax
call section..text
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp + 8]
mov ecx, dword [0x41cf60]
push eax
call fcn.00401200
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402cb0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402cc3
sub eax, edi
jne 0x402cd9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402cf2
mov eax, dword [esi]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov eax, dword [esi]
sub esp, 0x44
mov esi, esp
lea ecx, [esi + 4]
mov dword [ebp - 4], esp
mov dword [esi], ecx
mov byte [ecx], 0
mov ebx, eax
test eax, eax
jne 0x402d0f
mov ebx, 0x4173a4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d14
sub eax, edx
mov edi, eax
cmp edi, 0x3f
jl 0x402d3a
lea ecx, [edi + 1]
push ecx
push 0
mov dword [esi], 0
call fcn.00408a91
add esp, 8
mov dword [esi], eax
mov edx, dword [esi]
push edi
push ebx
push edx
call fcn.004087a7
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov byte [edi + eax], 0
call fcn.00402d70
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402d70
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4143a8
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x41b024]
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 - 0x144], eax
push 0x417430
push 0x66
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402dd0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x402ec0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push esi
test ebx, ebx
jne 0x402deb
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x402eb8
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x402e06
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
cmp eax, ecx
jmp 0x402ec0
push edi
call fcn.00408053
add esp, 4
mov dword [0x41cf2c], eax
test eax, eax
je 0x402e30
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [0x41cf2c]
push eax
push edx
call fcn.0040e410
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x12c
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.0040c670
add esp, 0xc
push edi
call fcn.00407f60
mov edi, eax
add esp, 4
test edi, edi
je 0x402eb3
push 0xffffffffffffffff
lea edx, [ebp - 0x140]
call fcn.00407fd0
add esp, 4
test eax, eax
jne 0x402eb3
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402e8b
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 - 0x148], esp
push eax
call fcn.004023a0
mov ecx, dword [ebp - 0x140]
push ecx
mov ecx, dword [ebp - 0x144]
mov edx, edi
call fcn.00402ef0
call fcn.00408010
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
cmp eax, edx
je 0x402ecb
push eax
call fcn.004087c1
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.0040805e
mov esp, ebp
pop ebp
ret 0x48
Function at 0x402ef0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414370
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x41b024]
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 - 0x18c], edi
mov dword [ebp - 0x190], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x98]
cmp eax, ebx
je 0x402f4e
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 0x4030d7
jmp 0x402f66
mov esi, dword [ebp - 0x190]
push 0x12c
lea edx, [ebp - 0x188]
push 0
push edx
call fcn.0040c670
add esp, 0xc
test esi, esi
jne 0x402f8c
mov dword [0x41cf5c], 0x10000
jmp 0x402fb1
cmp dword [esi], 1
je 0x402f9d
mov dword [0x41cf5c], 0x80000
jmp 0x402fb1
mov ecx, dword [esi + 4]
push ebx
lea edx, [ebp - 0x188]
call fcn.00407540
mov dword [0x41cf5c], eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0
test edi, edi
jne 0x402fc7
mov edi, 0x4173a4
mov ecx, edi
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x402fd0
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x402ff8
lea eax, [esi + 1]
push eax
push 0
mov dword [ebp - 0x58], 0
call fcn.00408a91
add esp, 8
mov dword [ebp - 0x58], eax
push esi
push edi
push eax
call fcn.004087a7
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x417314
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00402430
lea edx, [ebp - 0x184]
push edx
lea eax, [ebp - 0x58]
call fcn.00402430
test byte [ebp - 0x80], 0x10
je 0x40303c
mov eax, dword [ebp - 0x58]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x190]
test eax, eax
jne 0x403052
mov dword [0x41cf5c], 0x10000
jmp 0x403075
cmp dword [eax], 1
je 0x403063
mov dword [0x41cf5c], 0x80000
jmp 0x403075
mov edx, dword [ebp - 0x58]
mov ecx, dword [eax + 4]
push edx
push ebx
call fcn.00407c30
mov dword [0x41cf5c], eax
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x403091
mov ecx, dword [ebp - 0x58]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18c]
mov eax, dword [edx + 0x98]
test eax, eax
je 0x4030b0
push 0
push ebx
push 0x52d
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x4030c7
push eax
call fcn.004087c1
add esp, 4
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x402f60
mov edi, dword [ebp - 0x18c]
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4030f1
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 0x403104
push eax
call fcn.004087c1
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.0040805e
mov esp, ebp
pop ebp
ret 0x48
Function at 0x4036e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41b024]
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 0x4037e0
mov edx, dword [0x41cf60]
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.00402a00
lea edx, [ebp - 0x44]
push 8
mov eax, edx
push str.yyfm0529
push eax
mov dword [ebp - 0x48], edx
mov byte [ebp - 0x44], 0
call fcn.004087a7
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 8], 0
mov edx, dword [esi + 0x54]
add esp, 0x18
push edx
lea eax, [ebp - 0x48]
call fcn.00402430
mov edx, dword [ebp - 0x8c]
mov eax, edx
lea esi, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403787
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 0x4037c7
push eax
call fcn.004087c1
add esp, 4
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
cmp eax, edx
je 0x4037e0
push eax
call fcn.004087c1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040805e
mov esp, ebp
pop ebp
ret