joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472009
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
lea ecx, [ebp - 0x410]
push ecx
mov ebx, 0x3ff
push ebx
lea ecx, [ebp - 0x40c]
push ecx
mov dword [ebp - 0x410], edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x41c], eax
push eax
jmp 0x47209a
mov eax, dword [ebp - 0x410]
mov byte [ebp + eax - 0x40c], 0
lea eax, [ebp - 0x40c]
push eax
call fcn.00461270
push 0
lea eax, [ebp - 0x410]
push eax
push ebx
lea eax, [ebp - 0x40c]
push eax
push dword [ebp - 0x41c]
call edi
cmp dword [ebp - 0x410], 0
jne 0x472069
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x4720d1
lea ecx, [eax - 2]
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0043aef2
mov edi, esi
call fcn.0044607b
lea ecx, [ebp - 0x414]
call fcn.00402964
cmp dword [ebp - 0x41c], 0
je 0x4720e6
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b196e
leave
ret
Function at 0x472f57
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x198], eax
mov eax, dword [ebp + 0x1a4]
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push edi
push eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x472fe7
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004054af
lea ebx, [ebp - 0x7c]
call fcn.0045df80
inc dword [ebp - 0x74]
mov ecx, ebx
call fcn.00402964
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x472fa4
pop ebx
mov ecx, dword [ebp + 0x198]
pop edi
xor ecx, ebp
pop esi
call fcn.004b196e
add ebp, 0x19c
leave
ret 4

Function at 0x473000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x473062
push dword [ebp - 4]
call fcn.004028cf
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.00412cef
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
or eax, 0xffffffff
call fcn.00402917
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x4738b9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov eax, edi
call fcn.00440445
xor eax, eax
cmp byte [esi + 0xc], al
je 0x4738de
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x473902
cmp dword [edi], eax
je 0x473902
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x473926
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0x10
mov edi, eax
call fcn.00419873
pop edi
pop esi
pop ebp
ret 4
Function at 0x473bdb
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov esi, eax
push 0x4f97b0
lea eax, [ebp - 4]
push eax
call fcn.004054af
lea edi, [esi + 0x1c]
lea ecx, [ebp - 4]
call fcn.0045fac0
lea ecx, [ebp - 4]
call fcn.00402964
lea ebx, [esi + 4]
push ebx
lea esi, [ebp - 8]
call fcn.00483771
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
pop ecx
je 0x473c43
mov edi, dword [edi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
mov ecx, esi
inc bl
call fcn.00402964
mov al, bl
jmp 0x473ccb
push 0x52655c
push edi
xor eax, eax
lea esi, [ebp - 0x98]
call fcn.0047e76c
push 1
push 0
push edi
push ebx
mov ecx, esi
call fcn.0047e8ad
mov ebx, eax
test ebx, ebx
je 0x473cb3
cmp byte [0x5283d4], 0
je 0x473cb3
lea eax, [ebp - 0xc]
push eax
call fcn.0045ed80
pop ecx
push dword [eax]
lea eax, [ebp - 4]
push str.Downloading_of_updates_failed._Error:
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp - 4]
call fcn.00402964
lea ecx, [ebp - 0xc]
call fcn.00402964
lea esi, [ebp - 0x98]
call fcn.0047e80c
lea ecx, [ebp - 8]
call fcn.00402964
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474f95
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0x30]
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x474fb5
mov al, 1
jmp 0x4751a2
call fcn.0045e2c0
test al, al
je 0x4750a3
push 0x3c
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.004b3b00
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.GlobalMemoryStatusEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x30]
call fcn.0045ec90
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x504510]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x475060
call fcn.004d0410
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x475085
fadd qword [0x504498]
jmp 0x47507e
call fcn.004d0410
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x475085
fsub qword [0x504498]
call fcn.004d0410
jmp 0x47508a
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
test esi, esi
je 0x47513e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x47513e
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x30]
call fcn.0045ec90
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x4750dc
fadd qword [0x504490]
fmul qword [0x504510]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x47510f
call fcn.004d0410
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x475134
fadd qword [0x504498]
jmp 0x47512d
call fcn.004d0410
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x475134
fsub qword [0x504498]
call fcn.004d0410
jmp 0x475139
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov edi, edx
cmp byte [0x5283d4], 0
je 0x475176
push edi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
call fcn.00478288
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp - 8]
call fcn.00402964
mov eax, dword [ebp - 0x10]
cdq
cmp edi, edx
jb 0x47518c
ja 0x474fae
cmp ebx, eax
jae 0x474fae
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.004752d2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4752d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
sub esp, 0xc
add eax, 0x54
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041804a
lea eax, [ebp - 0xc]
push eax
call fcn.004710cf
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.004029ba
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00405388
lea eax, [ebp - 4]
push eax
call fcn.004029ba
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.0044bda7
add esp, 0x10
cmp byte [0x5283d4], 0
je 0x475355
push dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp + 8]
call fcn.00402964
cmp byte [esi + 0x10], 0
je 0x475366
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x475382
mov eax, dword [esi]
call fcn.00476e86
mov eax, dword [esi]
push 0
call fcn.00476d99
push 0x30
push eax
lea eax, [ebp - 4]
push eax
call fcn.00476e0a
lea ecx, [ebp - 4]
call fcn.00402964
lea ecx, [ebp - 8]
call fcn.00402964
lea ecx, [ebp - 0xc]
call fcn.00402964
leave
ret 8

Function at 0x476e93
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x484047
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x476ef7
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x476ef7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x476ed0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x477690
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x4777d5
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x477710
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.0040548c
push 0x2e
call fcn.004460e6
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push esi
call fcn.00461350
push str..log
push esi
call fcn.00446281
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.00419873
cmp dword [ebx], 0xffffffff
je 0x4777c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47775d
mov eax, dword [ebx]
test eax, eax
je 0x47778e
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x47778e
test eax, eax
jne 0x4777c4
mov eax, dword [ebx]
test eax, eax
je 0x47778e
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x4777d4
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.004777ee
lea eax, [ebp - 0x78]
push eax
call fcn.004029ba
lea esi, [ebp - 0x78]
call fcn.00477813
mov eax, esi
mov esi, edi
call fcn.004777ee
lea ecx, [ebp - 0x78]
call fcn.00402964
jmp 0x4777d4
mov eax, dword [ebx]
test eax, eax
je 0x4777d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b196e
add ebp, 0x198
leave
ret 4

Function at 0x4777ee
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x4780b3
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.00470f3d
test al, al
jne 0x47816b
push str.ProgramFilesFolder
push edi
call fcn.0043b02c
mov esi, str.AppDataFolder
test eax, eax
je 0x47810c
push str.ProgramFiles
push edi
call fcn.0047384b
pop ecx
pop ecx
test al, al
jne 0x47810c
push esi
push edi
call fcn.0043b02c
test eax, eax
jne 0x47816b
push esi
push edi
call fcn.0043b02c
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x47812c
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x47814b
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x478162
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.0040548c
xor eax, eax
test esi, esi
setne al
jmp 0x47816d
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004b196e
add ebp, 0x190
leave
ret

Function at 0x478331
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x5283d4], 0
je 0x478363
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.00478183
push eax
call fcn.00478193
push eax
mov eax, 0x5283a4
call fcn.004775b8
lea ecx, [ebp - 4]
call fcn.00402964
cmp byte [0x525cd4], 0
je 0x4783b6
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x47837b
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
push eax
call fcn.004054af
push edi
lea eax, [ebp - 8]
push eax
call fcn.004029ba
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.004739d0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00402964
lea ecx, [ebp - 4]
call fcn.00402964
pop edi
leave
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret

Function at 0x478981
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ecx - 0xc], eax
je 0x4789a6
lea esi, [ebp - 0xc]
call fcn.0045df80
lea ebx, [edi + 0x18]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x4789b9
lea esi, [ebp - 0xc]
call fcn.0045df80
xor esi, esi
cmp dword [ebp - 8], esi
jle 0x4789de
mov eax, esi
lea ecx, [ebp - 0xc]
call fcn.00470521
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
cmp esi, dword [ebp - 8]
jl 0x4789c0
lea esi, [ebp - 0xc]
call fcn.004475bc
pop esi
pop ebx
leave
ret
Function at 0x478c35
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.004029ba
lea eax, [ebp - 0xc]
push eax
call fcn.004029ba
lea eax, [ebp - 4]
push eax
call fcn.004029ba
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x10]
lea eax, [ebp - 4]
call fcn.0046e4d0
lea eax, [ebp - 4]
lea edi, [ebp - 8]
call fcn.0044607b
xor ecx, ecx
mov edx, 0x4febfc
lea esi, [ebp - 4]
call fcn.0045eec0
test eax, eax
jne 0x478c97
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, edi
push eax
call fcn.0040548c
lea eax, [ebp - 0x14]
push str.instname_target.msi
push eax
lea esi, [ebp - 8]
lea edi, [ebx + 0x14]
call fcn.00445887
pop ecx
pop ecx
call fcn.0044607b
lea ecx, [ebp - 0x14]
call fcn.00402964
lea eax, [ebp - 0x10]
push str.instname_custom.mst
lea edi, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], edi
call fcn.00445887
pop ecx
pop ecx
call fcn.0044607b
lea ecx, [ebp - 0x10]
call fcn.00402964
lea esi, [ebx + 0x14]
mov eax, dword [esi]
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x478cfc
push dword [ebp + 8]
call fcn.004029ba
jmp 0x478d48
push 0x4ef5c4
lea eax, [ebp - 0x10]
push eax
call fcn.004054af
add ebx, 0xc
push ebx
lea edi, [ebp - 0x10]
mov eax, esi
call fcn.00478e90
mov ecx, edi
mov bl, al
call fcn.00402964
test bl, bl
je 0x478d3d
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0xc]
call fcn.00478d6a
lea ecx, [ebp - 0x10]
call fcn.00402964
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0041804a
lea ecx, [ebp - 4]
call fcn.00402964
lea ecx, [ebp - 0xc]
call fcn.00402964
lea ecx, [ebp - 8]
call fcn.00402964
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4793cb
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x130]
sub esp, 0x1b0
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x12c], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov esi, edx
push SysReAllocStringLen
mov edi, ecx
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x47941b
xor al, al
jmp 0x479528
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x6c], eax
jle 0x479432
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x7c], eax
cmp eax, ebx
jne 0x479461
cmp dword [ebp - 0x74], 0xc8
jbe 0x479517
lea eax, [ebp - 0x68]
push eax
call fcn.004029ba
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4794c0
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
jge 0x479482
push 0x80070057
call fcn.004029f2
cmp word [eax], 0x22
je 0x4794c0
push 0x20
xor ecx, ecx
mov esi, edi
call fcn.004460bc
cmp eax, 0xffffffff
je 0x4794bd
push 0x22
lea edi, [ebp - 0x68]
call fcn.00459f20
mov eax, esi
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00446332
push 0x22
call fcn.00459f20
mov esi, dword [ebp - 0x78]
jmp 0x4794ca
mov esi, dword [ebp - 0x78]
mov eax, edi
lea edi, [ebp - 0x68]
call fcn.0044607b
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x4794e5
jl 0x479478
cmp word [eax], 0x20
je 0x4794e5
push 0x20
lea edi, [ebp - 0x68]
call fcn.00459f20
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x68]
call fcn.00446332
mov ecx, dword [ebp - 0x68]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push ebx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
call fcn.00402964
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x7c], ebx
sete al
mov ecx, dword [ebp + 0x12c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b196e
add ebp, 0x130
leave
ret
Function at 0x4795c1
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4795ea
xor al, al
leave
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
push edi
jle 0x479600
lea esi, [esi + eax*2 - 0x9e]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x47962b
cmp edi, 0xea
jne 0x479637
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret

Function at 0x479bf3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [eax]
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
jne 0x479c0c
xor eax, eax
jmp 0x479cbf
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x479c30
push eax
jmp 0x479cb6
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], 2
push edi
lea ecx, [ebp - 0x10]
add eax, 2
push ecx
push eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x479cb1
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0x78
pop ecx
lea edx, [ebp - 8]
call fcn.0044b532
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea esi, [ebp - 8]
call fcn.00412cef
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x479ca9
cmp dword [ebp - 0xc], edi
je 0x479ca9
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0047973b
lea ecx, [ebp - 8]
movzx esi, al
call fcn.00402964
cmp ebx, edi
je 0x479ca5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x479cbf
lea ecx, [ebp - 8]
call fcn.00402964
cmp ebx, edi
je 0x479cbc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47c463
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov dword [ebp - 0x430], eax
cmp eax, ebx
je 0x47c5ff
lea eax, [ebp - 0x214]
push eax
push ebx
push 0x4f9754
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x47c5ff
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004054af
push str..url
lea eax, [ebp - 0x420]
push eax
call fcn.00446281
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c521
push eax
jmp 0x47c5ee
lea eax, [ebp - 0x424]
push eax
call fcn.004029ba
push dword [esi]
lea eax, [ebp - 0x42c]
push eax
call fcn.00447023
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push str._InternetShortcut__r_nURL_s_r_n
call fcn.004473d5
mov eax, dword [ebp - 0x424]
pop ecx
pop ecx
mov ecx, dword [eax - 0xc]
push ebx
lea edx, [ebp - 0x430]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp edi, ebx
je 0x47c57c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp esi, ebx
je 0x47c596
push 5
push ebx
push ebx
push dword [ebp - 0x420]
push 0x4f1424
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x428]
add eax, 0x18
push eax
push 0x5c
lea esi, [ebp - 0x420]
call fcn.004460e6
lea ecx, [ebp - 0x428]
push ecx
mov ecx, esi
push ecx
mov ecx, eax
call fcn.0043aef2
push eax
call fcn.0045fb60
pop ecx
pop ecx
lea ecx, [ebp - 0x428]
call fcn.00402964
lea eax, [ebp - 0x42c]
push eax
call fcn.00447065
lea eax, [ebp - 0x424]
push eax
call fcn.00447065
cmp edi, ebx
je 0x47c5f4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x420]
call fcn.00402964
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b196e
leave
ret 4