joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ede0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4901a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ee10
sub eax, edx
sar eax, 1
test esi, esi
je 0x40ef9f
test eax, eax
je 0x40ef9f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ef75
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b5e2c
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b5e2c
mov dword [esp + 0x20], 0
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea eax, [esp + 0x2c]
push 0x4a72a8
push eax
mov byte [esp + 0x2c], 1
call fcn.0040ebe0
mov edi, dword [esp + 0x34]
mov ecx, dword [edi - 0xc]
lea eax, [ecx - 1]
add esp, 0xc
test eax, eax
jl 0x40efb4
cmp eax, ecx
jg 0x40efb4
movzx eax, word [edi + eax*2]
cmp ax, 0x5c
je 0x40eec0
push 0x4947e4
lea ecx, [esp + 0x2c]
call fcn.0040ec80
mov edi, dword [esp + 0x28]
push 0
push 0x5c
lea ecx, [esp + 0x30]
call fcn.0040d7a0
mov esi, eax
cmp esi, 0xffffffff
je 0x40ef63
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040e390
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call fcn.0040e410
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ef36
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ef8d
lea eax, [esi + 1]
test eax, eax
jl 0x40ef63
cmp eax, dword [edi - 0xc]
jge 0x40ef63
lea ecx, [edi + eax*2]
push 0x5c
push ecx
call fcn.004455fb
add esp, 8
test eax, eax
je 0x40ef63
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40eed8
lea ecx, [esp + 0x10]
call fcn.0040da40
lea ecx, [esp + 0x28]
call fcn.0040da40
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
lea ecx, [esp + 0x10]
call fcn.0040da40
lea ecx, [esp + 0x28]
call fcn.0040da40
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.0040c180
int3
Function at 0x40f350
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x490246
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x43c], eax
push esi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov esi, dword [esp + 0x458]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x246]
push ecx
mov word [esp + 0x248], ax
call fcn.004453c0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x4a]
push eax
mov word [esp + 0x4c], dx
call fcn.004453c0
mov ecx, dword [str.360safe.exe]
mov edx, dword [0x4948a0]
mov eax, dword [0x4948a4]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4948a8]
push 0x103
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [0x4948ac]
mov dword [esp + 0x40], eax
mov eax, dword [0x4948b0]
lea ecx, [esp + 0x50]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
push ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], 0x208
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call fcn.00446642
push 0xc
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00446602
add esp, 0x30
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x40]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f533
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x494820
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4947e8
lea ecx, [esp + 0x14]
call fcn.0040f040
push eax
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x45c], 0
call fcn.0040e880
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x454], 1
call fcn.0040e410
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x450], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f4f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x450], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f522
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb eax, eax
neg eax
jmp 0x40f535
xor eax, eax
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.004453a3
add esp, 0x44c
ret
Function at 0x410960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x490468
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00419600
xor edi, edi
mov dword [esi], vtable.DispatcherTimer.0
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esi + 8], vtable.Event.0
call fcn.004108e0
mov dword [esi + 0x24], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x411ce0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x2010
call fcn.004463d0
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2024]
push ebp
mov ebp, dword [esp + 0x2024]
push esi
mov esi, dword [esp + 0x2020]
push edi
mov edi, dword [esp + 0x2028]
push 0x1fff
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.004453c0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x411de0
cmp eax, 0x1fff
ja 0x411de0
lea edx, [esp + 0x1c]
push edx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411de0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x4947e4
lea edx, [esp + 0x28]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411de0
cmp dword [esp + 0x2038], 0
mov eax, dword [esp + 0x10]
je 0x411d9c
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
jmp 0x411da2
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
test edi, edi
je 0x411da8
mov dword [edi], ecx
test ebp, ebp
je 0x411daf
mov dword [ebp], eax
test ebx, ebx
je 0x411dd9
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x2044]
push str._d._d._d._d
push ecx
push ebx
call fcn.00411c70
add esp, 0x1c
mov eax, 1
jmp 0x411de2
xor eax, eax
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004453a3
add esp, 0x2010
ret

Function at 0x413020
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push 1
push 0
mov esi, ecx
mov eax, dword [esi + 0x28]
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x413057
mov eax, dword [esi + 4]
or byte [esi + 0x58], 2
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
mov al, bl
pop ebx
ret
Function at 0x413710
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413786
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x413755
cmp eax, 2
jne 0x413771
mov eax, dword [esp + 0x14]
test esi, esi
je 0x413780
test eax, eax
je 0x41377b
test al, 1
jne 0x413771
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x413780
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x415230
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4905eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x12c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov ecx, dword [esi + 0x1ac]
push 0
push ecx
call edi
mov edx, dword [esi + 0x54]
push 0
push edx
call edi
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fe
push eax
call ebx
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 2
push ecx
call ebx
push eax
call edi
cmp dword [esi + 0x204], 0
jne 0x4152eb
push 0xb0
call fcn.00439350
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x4152cc
mov ecx, eax
call fcn.00442060
jmp 0x4152ce
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esi + 0x204], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x24], 0xffffffff
call edx
mov ecx, dword [esi + 0x204]
push 0x19
call fcn.00440020
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x204]
push 0x402
push eax
call fcn.00440030
mov ecx, dword [esi + 0x204]
call fcn.00440470
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x415380
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x49061b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x12c]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov ecx, dword [esi + 0x1ac]
push 0
push ecx
call edi
mov edx, dword [esi + 0x54]
push 0
push edx
call edi
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3fe
push eax
call ebx
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push 0
push 2
push ecx
call ebx
push eax
call edi
cmp dword [esi + 0x210], 0
jne 0x415432
push 0xa8
call fcn.00439350
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
test eax, eax
je 0x41541e
mov ecx, eax
call fcn.00442830
jmp 0x415420
xor eax, eax
mov dword [esp + 0x2c], 0xffffffff
mov dword [esi + 0x210], eax
test eax, eax
je 0x415494
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esi + 0x1a4]
mov edx, dword [esi + 0x194]
push ecx
mov ecx, dword [esi + 4]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi + 0x210]
call fcn.00442910
mov ecx, dword [esi + 0x210]
call fcn.00442d90
mov edx, dword [esi + 4]
push edx
mov dword [esi + 0x25c], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x415494
mov eax, dword [esi + 4]
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20c]
test ecx, ecx
je 0x4159ff
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x20c], 0
mov ecx, esi
pop esi
jmp 0x415380
Function at 0x418000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49080d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x4b3c40]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x38], edi
call fcn.00416b40
lea ebp, [esi + 0x28]
mov dword [esi + 0x20], vtable.WTL::CMessageFilter.0
mov ecx, ebp
mov byte [esp + 0x38], 1
mov dword [esi + 0x24], vtable.WTL::CIdleHandler.0
call fcn.00419600
push edi
push 0xb
lea ecx, [esi + 0x50]
mov byte [esp + 0x40], 2
mov dword [esi], vtable.CMainDlg.2.0
mov dword [esi + 0x20], vtable.CMainDlg.1.0
mov dword [esi + 0x24], vtable.CMainDlg.0
mov dword [ebp], 0x494bc0
mov dword [esi + 0x48], edi
call fcn.004172a0
push edi
push 0xb
lea ecx, [esi + 0xbc]
mov byte [esp + 0x40], 3
call fcn.004172a0
push edi
push 0xb
lea ecx, [esi + 0x128]
mov byte [esp + 0x40], 4
call fcn.004172a0
lea ecx, [esi + 0x1a8]
mov byte [esp + 0x38], 5
mov dword [esi + 0x194], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x19c], edi
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x1a4], edi
call fcn.00413540
mov dword [esi + 0x204], edi
mov dword [esi + 0x208], edi
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b5e2c
mov byte [esp + 0x38], 6
call edx
add eax, 0x10
mov dword [esi + 0x214], eax
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b5e2c
mov byte [esp + 0x38], 7
call edx
add eax, 0x10
mov dword [esi + 0x218], eax
mov eax, dword [0x4b5e2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b5e2c
mov byte [esp + 0x38], 8
call edx
add eax, 0x10
mov dword [esi + 0x21c], eax
mov byte [esp + 0x38], 9
mov dword [esi + 0x224], edi
mov dword [esi + 0x228], edi
mov dword [esi + 0x230], edi
lea ecx, [esi + 0x23c]
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
call fcn.0043d670
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x25c], edi
mov dword [esi + 0x260], edi
mov dword [esi + 0x268], edi
mov dword [esi + 0x278], edi
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov dword [esi + 0x284], eax
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esi + 0x27c], edi
mov dword [esi + 0x280], edi
mov dword [esi + method.CWndMsg.virtual_0], vtable.CWndMsg.0
mov dword [esi + 0x288], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], edi
call sub.gdiplus.dll_GdiplusStartup
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
Function at 0x419cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0xa
push eax
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x419cfa
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x419cf1
push ebx
push ebp
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push edi
xor ecx, ecx
push edi
mov dword [esi + 0x24], ecx
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push edi
push esi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], eax
call edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8

Function at 0x419e00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x90
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [esp + 4]
test esi, esi
je 0x419ea0
xor ecx, ecx
push 0x7e
push ecx
lea edx, [esp + 0x1a]
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x1c], cx
call fcn.004453c0
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.CurrentVersion
push esi
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
call fcn.00446a2c
fstp dword [esp + 8]
add esp, 4
jmp 0x419eaa
fld dword [0x494d1c]
fstp dword [esp + 4]
mov ecx, dword [esp + 0x90]
fld dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004453a3
add esp, 0x90
ret

Function at 0x419fc0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov eax, edx
push esi
mov dword [esp + 4], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419ff4
mov ecx, dword [esp + 0x2c]
sub eax, esi
sar eax, 1
dec ecx
pop esi
cmp eax, ecx
jae 0x41a03e
xor ecx, ecx
mov word [edx + eax*2 + 2], cx
mov dword [esp + 8], edx
lea eax, [esp]
mov edx, 0x614
push eax
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
add esp, 0x20
ret 8
or eax, 0xffffffff
add esp, 0x20
ret 8
Function at 0x41ab50
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
mov esi, dword [esp + 0x41c]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
mov eax, dword [esi]
push eax
je 0x41aba2
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41abaa
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004453a3
add esp, 0x414
ret
call fcn.00435010
add esp, 4
push 0x410
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.004453c0
mov eax, dword [esi]
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
push 0x494d28
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 8]
push ecx
call edi
test eax, eax
je 0x41ab89
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x418]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004453a3
add esp, 0x414
ret
Function at 0x41b640
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x14], 0
mov word [esp + 0x18], ax
call fcn.004453c0
add esp, 0xc
xor ebx, ebx
push ebx
lea edx, [esp + 0xc]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARE360AP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b768
mov eax, dword [edi + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00446642
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b6c0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x494f04
push edx
call esi
test eax, eax
je 0x41b6f7
mov ebx, 1
cmp byte [esp + 0x220], 0
jne 0x41b75c
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004453c0
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00446642
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b730
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x494efc
push edx
call esi
test eax, eax
je 0x41b75c
inc ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0x214]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004453a3
add esp, 0x210
ret 4
Function at 0x41b790
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b3c40]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x220]
push edi
xor ebp, ebp
push 0x206
mov ebx, ecx
lea ecx, [esp + 0x1a]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x1c], ebp
mov word [esp + 0x20], ax
call fcn.004453c0
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41b7d6
push ebp
sub eax, edx
lea edx, [esp + 0x14]
push edx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push 0x494f58
sar eax, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b8e0
push 0x208
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004453c0
push 1
lea ecx, [esp + 0x24]
push 0x494f54
push ecx
call fcn.00446642
push edi
lea edx, [esp + 0x30]
push esi
push edx
call fcn.00446602
push 1
lea eax, [esp + 0x3c]
push 0x4947e4
push eax
call fcn.00446602
mov eax, dword [ebx + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00446602
push 1
lea eax, [esp + 0x54]
push 0x494f54
push eax
call fcn.00446602
lea edi, [esp + 0x5c]
add esp, 0x48
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41b880
mov ecx, 7
mov esi, str.__autorunfree
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b8a0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 1
push 0
push str.360AP
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41b8d5
mov ebp, 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004453a3
add esp, 0x210
ret 4