joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412385
Capabilities:
Continue service
Modify service
Persist via windows service
Query or enumerate registry value
Set registry value
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str.LFlags
mov ebx, str.SOFTWARE360Safe360krnlsvc
xor edi, edi
push ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4123d0
mov byte [ebp - 8], 1
cmp dword [ebp - 0xc], edi
jne 0x4123d4
mov byte [ebp - 8], 0
xor edi, edi
inc edi
push edi
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xc]
push str.ForceExitService::OpenSCManager_Handle:_x_Error:_d_r_n
push dword [ebp - 8]
call fcn.00412515
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x41250d
push 0x30130
push str.ZhuDongFangYu
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 4]
push str.ForceExitService::OpenService_ZhuDongFangYu__Handle:_x_Error:_d_r_n
push dword [ebp - 8]
call fcn.00412515
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x412504
call fcn.00412343
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.CFlags
push ebx
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
call edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.EFlags
push ebx
push esi
mov dword [ebp - 0x10], 1
call edi
and dword [ebp - 0x10], 0
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.RFlags
push ebx
push esi
call edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push str.Start
push str.SYSTEMCurrentControlSetServicesZhuDongFangYu
push esi
mov dword [ebp - 0x10], 3
call edi
lea eax, [ebp - 0x2c]
push eax
push 0x8e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
push str.ForceExitService::ControlService___Ret:_d_Error:_d
push dword [ebp - 8]
call fcn.00412515
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4124fb
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412515
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x4125dc
push edi
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
mov eax, 0x200
lea edi, [ebp - 0x814]
call fcn.004156fe
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x416], ax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004701a0
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x4125dc
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe
lea eax, [ebp - 0x414]
push eax
call esi
push str.Zhudongfangyu.log
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004125e8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047021a
leave
ret

Function at 0x4125e8
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
cmp esi, 0xffffffff
je 0x4126de
push edi
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x412637
push esi
jmp 0x4126d7
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], ebx
jl 0x412664
jg 0x412650
cmp dword [ebp - 0x14], 0x100000
jbe 0x412664
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, 0xffffffff
je 0x4126d4
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4126d4
inc eax
push eax
call fcn.0046fac5
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4126d4
push ebx
push ebx
push dword [ebp - 8]
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov byte [eax + edi], bl
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004715c0
pop ecx
inc eax
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.00471864
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x412843
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4dd2d0
push 0x471cb0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x2a18
call fcn.00471870
mov eax, dword [0x4ed820]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xa30], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa2c], eax
xor edi, edi
cmp eax, edi
je 0x4129a5
push eax
call fcn.00470c3e
pop ecx
cmp eax, 0x104
ja 0x4129a5
mov dword [ebp - 4], edi
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov dword [ebp - 4], 0xfffffffe
jmp 0x4128d8
mov esi, 0x800
push esi
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.004701a0
mov dword [ebp - 0xa28], edi
push 0x2000
push edi
lea eax, [ebp - 0x2a30]
push eax
call fcn.004701a0
add esp, 0x18
lea eax, [ebp - 0xa28]
push eax
push esi
lea eax, [ebp - 0x2a30]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4129a5
push 0x104
push dword [ebp - 0xa2c]
lea eax, [ebp - 0x224]
push eax
call fcn.00470149
lea eax, [ebp - 0x224]
push eax
call fcn.00470746
add esp, 0x10
cmp dword [ebp - 0xa28], edi
jbe 0x4129a5
lea esi, [ebp + edi*4 - 0x2a30]
lea eax, [ebp - 0xa24]
push eax
push dword [esi]
call fcn.00412d82
test eax, eax
je 0x41299c
lea eax, [ebp - 0xa24]
push eax
call fcn.00470746
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0047030e
add esp, 0xc
test eax, eax
jne 0x41299c
mov eax, dword [ebx]
push 0x3e8
push dword [esi]
push ebx
call dword [eax + 0x18]
inc edi
cmp edi, dword [ebp - 0xa28]
jb 0x412950
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047021a
leave
ret 8

Function at 0x412cdc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412d37
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4
Function at 0x413894
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x4138f6
mov word [ebx], ax
test esi, esi
jne 0x4138bd
xor eax, eax
jmp 0x4138f6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4138b9
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004701a0
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.0040d2ec
add esp, 0x14
test eax, eax
je 0x4138b9
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp + 0x14]
call fcn.0040d39b
xor eax, eax
pop ecx
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
leave
ret 0x10

Function at 0x41393e
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41395f
xor eax, eax
jmp 0x4139af
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
test eax, eax
jne 0x41395b
push 0x80020003
push 0x12
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x414171
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d0100]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4d0104]
mov dword [ebp - 8], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4141ae
xor eax, eax
xor edx, edx
jmp 0x4141da
push 8
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4141a8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047021a
leave
ret 8

Function at 0x414316
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x80c], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x800
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004701a0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 0xc]
push 0
cdq
push 0x100000
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00479ac0
cmp word [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x4143a8
movzx ecx, word [esi]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x4c]
cmp edx, dword [esp + 0xc]
ja 0x4143c0
jb 0x414397
cmp eax, dword [esp + 8]
ja 0x4143c0
push esi
call fcn.00470c3e
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
pop ecx
jne 0x41437f
xor eax, eax
mov ecx, dword [esp + 0x814]
pop edi
pop esi
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret 8
mov ax, word [esi]
jmp 0x4143aa

Function at 0x4143c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x4ed820]
xor eax, esp
mov dword [esp + 0x804], eax
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.004701a0
add esp, 0xc
push 0x400
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [esp + 0x804]
mov ax, word [esp]
xor ecx, esp
call fcn.0047021a
mov esp, ebp
pop ebp
ret 4

Function at 0x414ad1
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x808
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.004701a0
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.360Safe_
lea eax, [ebp - 0x80c]
push eax
call esi
push 0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.360safe.setup.log
lea eax, [ebp - 0x80c]
push eax
call esi
lea eax, [ebp - 0x80c]
push eax
mov ecx, edi
call fcn.0040285e
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0047021a
leave
ret 8
Function at 0x41585d
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x4b061d
call fcn.004711ef
mov esi, ecx
mov dword [ebp - 0x10], esi
lea edi, [esi + 8]
mov dword [esi], vtable.CFileManagerEx.0
mov dword [esi + 4], vtable.CFileManagerEx.1.0
mov dword [edi], vtable.CFileManagerEx.2.0
push 1
push esi
mov dword [ebp - 4], 3
call fcn.004159df
push dword [0x4f5948]
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
jne 0x4158cc
push dword [esi + 0x80]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4158cc
push esi
call fcn.00415d9b
push dword [esi + 0x80]
call fcn.00402b58
pop ecx
lea eax, [esi + 0x84]
push eax
mov byte [ebp - 4], 2
call fcn.00415f5a
mov ecx, dword [esi + 0x80]
sub ecx, 0x10
call fcn.0040290e
mov dword [esi + 0x64], vtable._BaseModule::CCriticalSection.0
add esi, 0x68
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.00422d73
call fcn.004712c7
ret
Function at 0x415ba7
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afb53
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ed820]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x1c]
test esi, esi
jne 0x415be1
xor eax, eax
jmp 0x415d43
xor ebx, ebx
inc ebx
push 0x4cdf90
lea ecx, [esp + 0x14]
mov dword [esi], ebx
call fcn.004025d8
and dword [esp + 0x38], 0
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x415c1c
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
jmp 0x415bda
lea eax, [edi + 0x64]
mov dword [esp + 0x1c], vtable._BaseModule::CAutoLocker.0
mov dword [esp + 0x20], eax
test eax, eax
je 0x415c34
mov ecx, dword [eax]
push eax
call dword [ecx]
mov byte [esp + 0x38], bl
cmp dword [edi + 0xa0], 0
jbe 0x415cf1
lea ebx, [edi + 0x84]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00416471
push eax
lea ecx, [esp + 0x14]
call fcn.00401d9d
call fcn.00416471
cmp dword [eax + 4], 0
je 0x415c8b
cmp dword [ebp + 0x20], 0
je 0x415c8b
call fcn.00416471
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push dword [esp + 0x18]
push eax
push ebx
call fcn.00415f82
mov ecx, dword [ebp + 0x14]
lea eax, [edi + 0xac]
inc dword [eax]
mov eax, dword [eax]
test ecx, ecx
je 0x415cb1
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x415cc0
mov ecx, dword [edi + 0xa8]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.0040d809
pop ecx
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x38], 0
call fcn.00416933
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
mov eax, esi
jmp 0x415d43
lea eax, [edi + 0xb0]
push ebx
push dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x415d18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00416933
jmp 0x415c0e
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
and dword [esi], 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00416933
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040290e
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4180c7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 8
mov eax, 0x4aeb41
call fcn.004711ef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4180f5
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x4180f5
xor eax, eax
call fcn.004712c7
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.00417e14
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x14]
push esi
call fcn.00470c3e
cmp eax, 1
pop ecx
jle 0x418123
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x418123
xor ecx, ecx
mov word [eax], cx
push 0x5c
push esi
call fcn.0046fe80
pop ecx
pop ecx
cmp eax, edi
jne 0x41813f
push 0xf
pop edi
push esi
call fcn.00471864
pop ecx
mov eax, edi
jmp 0x4180ef
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.004180c7
pop ecx
cmp eax, edi
je 0x418153
mov edi, eax
jmp 0x418134
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x418134
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41814f
jmp 0x418134

Function at 0x418754
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ed820]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [edi + 8], 0xffffffff
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov dword [edi + 0xc], esi
cmp ebx, esi
jne 0x41877c
xor eax, eax
jmp 0x418842
mov ecx, edi
call fcn.00418850
lea ecx, [edi + 0x10]
mov dword [ebp - 0x14], 0x12
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4cdf92]
mov byte [ebp - 0x15], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4cdf92]
mov byte [ebp - 0x16], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4cdf92]
mov byte [ebp - 0x17], al
xor edx, edx
mov eax, esi
div ebx
inc esi
mov al, byte [edx + 0x4cdf92]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x18]
xor dword [ecx], eax
add ecx, 4
dec dword [ebp - 0x14]
jne 0x41878d
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea ebx, [edi + 0x14]
mov dword [ebp - 0x14], 9
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b0de
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x4187ec
lea ebx, [edi + 0x5c]
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x80
lea esi, [ebp - 0x10]
mov eax, edi
call fcn.0041b0de
mov eax, dword [ebp - 0x10]
mov dword [ebx - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
add ebx, 8
dec dword [ebp - 0x14]
jne 0x41881a
dec dword [ebp - 0x18]
jne 0x418813
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047021a
leave
ret
Function at 0x41ba35
Capabilities:
Get thread local storage value

Disassembly:
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x41ba5d
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f3
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x20], ebp
xor eax, eax
pop ebp
ret
mov eax, dword [0x4f5474]
cmp eax, 0xffffffff
je 0x41ba81
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x41ba81
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], 0x3f4
jmp 0x41ba53
push esi
push 1
call fcn.0041beac
pop ecx
pop ecx
test eax, eax
jne 0x41baa1
lea eax, [esi + 0x10cc]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], 0xe
jmp 0x41ba56
push ebx
lea ebx, [esi + 0x10cc]
mov eax, ebx
call fcn.004184a4
cmp dword [esi + 0x10f0], ebp
jne 0x41bb56
cmp dword [esi + 0x110c], ebp
jne 0x41bb5a
push edi
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call edi
push str.FDICopy
push dword [esi + 0x110c]
mov dword [esi + 0x1110], eax
call edi
push str.FDIIsCabinet
push dword [esi + 0x110c]
mov dword [esi + 0x1114], eax
call edi
push str.FDIDestroy
push dword [esi + 0x110c]
mov dword [esi + 0x1118], eax
call edi
mov dword [esi + 0x111c], eax
pop edi
cmp dword [esi + 0x1110], ebp
je 0x41bb43
cmp dword [esi + 0x1114], ebp
je 0x41bb43
cmp dword [esi + 0x1118], ebp
je 0x41bb43
cmp eax, ebp
jne 0x41bb5a
mov dword [esi + 0x110c], ebp
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], ebp
mov dword [ebx + 0x20], ebp
xor eax, eax
jmp 0x41bb98
push ebx
push 1
push 0x41bfbb
push fcn.0041bf9a
push 0x41bf6f
push 0x41bf48
push 0x41bee6
push 0x41bee1
push 0x41bedc
call dword [esi + 0x1110]
xor ecx, ecx
add esp, 0x24
cmp eax, ebp
setne cl
mov dword [esi + 0x10f0], eax
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x41c8d7
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
test dword [ebp + 0xc], 0x100
je 0x41c8f1
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004797bd
add esp, 0xc
pop ebp
ret 0xc

Function at 0x41c906
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c98a
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x41c976
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
test esi, 0x100
ja 0x41c968
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 0xc]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
leave
ret 0xc