joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411806
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00412651
test eax, eax
jne 0x411834
push str._SCWIPEOUTMGR__Unused_WipeOut_Function
call fcn.0040bf32
pop ecx
xor eax, eax
jmp 0x411922
push ebx
call fcn.004383c0
cmp eax, 0xff
pop ecx
lea eax, [ebp - 0x20c]
jbe 0x411860
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x41186f
push str._SCWIPEOUTMGR__Short_Path_Name_NOT_Found
jmp 0x411827
push ebx
push 0x104
push eax
call fcn.00438df7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x411891
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [ebp - 0x45c], 0
push 0x24c
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.00437ff0
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4118d1
push str._SCWIPEOUTMGR__FindFirstFileW_::_Return_INVALID_HANDLE_VALUE
jmp 0x411827
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x43c]
mov eax, 0x186a0
cmp ecx, eax
ja 0x4118f0
cmp dword [ebp - 0x440], 0
jbe 0x4118f2
mov ecx, eax
push esi
push ecx
push dword [ebp - 0x440]
lea eax, [ebp - 0x20c]
push eax
call fcn.00411532
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41191f
push 0
push ebx
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437ed4
leave
ret

Function at 0x41192e
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
mov ebx, ecx
call fcn.00437ff0
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SCWipeOut.dll
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4119df
push str._SCWIPEOUTMGR__GetModuleHandleW_NULL
call fcn.0040bf32
pop ecx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4119df
push str._SCWIPEOUTMGR__LoadLibraryW_NULL
call fcn.0040bf32
pop ecx
call fcn.00411806
test eax, eax
jne 0x411a0e
push str._SCWIPEOUTMGR__Call_DELETEFILE1
call fcn.0040bf32
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x411a0e
push str.SCFileWipeOutW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x411a0a
push str._SCWIPEOUTMGR__GetProcAddress_NULL
call fcn.0040bf32
pop ecx
call fcn.00411806
test eax, eax
jne 0x411a0e
push str._SCWIPEOUTMGR__Call_DELETEFILE2
jmp 0x4119d0
push ebx
call eax
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00437ed4
leave
ret
Function at 0x411a1b
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
xor edi, edi
push eax
mov esi, ecx
inc edi
call fcn.00437ff0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.DSChkCondition.dll
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x411ad2
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411ad2
push str.CheckExCondition
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
test eax, eax
je 0x411acb
sub esp, 0x80
push 0x20
pop ecx
mov esi, 0x471744
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
add esp, 0x80
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x404]
call fcn.0041192e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437ed4
leave
ret
Function at 0x411eff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
stosd dword es:[edi], eax
cmp byte [0x471bb4], bl
jne 0x411fbb
push ebx
call fcn.0043887b
push eax
call fcn.00438af7
pop ecx
pop ecx
xor edi, edi
push 4
push 0x1000
mov esi, 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [edi*4 + 0x471ba8], eax
cmp eax, ebx
je 0x41207a
mov ecx, edi
dec ecx
je 0x411f9f
dec ecx
jne 0x411fae
xor esi, esi
call fcn.00438b09
mov ecx, dword [0x471bb0]
mov byte [ecx + esi], al
inc esi
cmp esi, 0x10000
jb 0x411f63
mov eax, dword [0x471bb0]
mov byte [eax], 8
mov eax, dword [0x471bb0]
mov byte [eax + 1], 8
mov eax, dword [0x471bb0]
mov byte [eax + 2], 7
mov eax, dword [0x471bb0]
mov byte [eax + 3], 5
jmp 0x411fae
push esi
push 0xff
push eax
call fcn.00437ff0
add esp, 0xc
inc edi
cmp edi, 3
jb 0x411f36
mov byte [0x471bb4], 1
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
sub dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], ebx
sbb dword [ebp - 0x14], eax
cmp dword [ebp - 8], ebx
je 0x411fe8
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 0x471ba8
cmp dword [ebp - 4], ebx
je 0x412008
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call edi
xor esi, esi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x2c], ebx
jb 0x412058
ja 0x412019
cmp dword [ebp + 0xc], ebx
jbe 0x412058
mov eax, dword [ebp + 0xc]
sub eax, esi
mov ecx, 0x10000
cmp eax, ecx
jbe 0x412029
mov eax, ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test al, al
je 0x412098
add esi, dword [ebp - 0x10]
adc dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x24], eax
jb 0x412019
ja 0x412058
cmp esi, dword [ebp + 0xc]
jb 0x412019
inc dword [ebp - 4]
add dword [ebp - 0xc], 4
cmp dword [ebp - 4], 3
jb 0x411ff2
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jb 0x411fd2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
cmp edi, ebx
jbe 0x412098
push 0x8000
push ebx
push dword [esi*4 + 0x471ba8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
inc esi
cmp esi, edi
jb 0x412080
xor eax, eax
jmp 0x412075
Function at 0x412651
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x120c], ax
lea eax, [ebp - 0x120a]
push eax
call fcn.00437ff0
lea ecx, [ebp - 0x120c]
call fcn.00412370
lea eax, [ebp - 0x120c]
push eax
push str._SCWIPEOUTMGR__WipeOut_ini_path__s_
call fcn.0040bf32
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00437ff0
add esp, 0x20
lea eax, [ebp - 0x120c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push str.Enable
push str.WIPEOUT_FILES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x412700
lea eax, [ebp - 0x20c]
push 0x451c20
push eax
call fcn.00438a64
pop ecx
pop ecx
test eax, eax
jne 0x412700
inc eax
jmp 0x412702
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437ed4
leave
ret

Function at 0x41270e
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00412651
test eax, eax
jne 0x41273c
push str._SCWIPEOUTMGR__Unused_WipeOut_Function
call fcn.0040bf32
pop ecx
xor eax, eax
jmp 0x41282a
push ebx
call fcn.004383c0
cmp eax, 0xff
pop ecx
lea eax, [ebp - 0x20c]
jbe 0x412768
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x412777
push str._SCWIPEOUTMGR__Short_Path_Name_NOT_Found
jmp 0x41272f
push ebx
push 0x104
push eax
call fcn.00438df7
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x412799
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [ebp - 0x45c], 0
push 0x24c
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.00437ff0
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4127d9
push str._SCWIPEOUTMGR__FindFirstFileW_::_Return_INVALID_HANDLE_VALUE
jmp 0x41272f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x43c]
mov eax, 0x186a0
cmp ecx, eax
ja 0x4127f8
cmp dword [ebp - 0x440], 0
jbe 0x4127fa
mov ecx, eax
push esi
push ecx
push dword [ebp - 0x440]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041209c
mov esi, eax
add esp, 0xc
test esi, esi
je 0x412827
push 0
push ebx
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437ed4
leave
ret
Function at 0x412836
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
mov ebx, ecx
call fcn.00437ff0
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SCWipeOut.dll
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4128e7
push str._SCWIPEOUTMGR__GetModuleHandleW_NULL
call fcn.0040bf32
pop ecx
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4128e7
push str._SCWIPEOUTMGR__LoadLibraryW_NULL
call fcn.0040bf32
pop ecx
call fcn.0041270e
test eax, eax
jne 0x412916
push str._SCWIPEOUTMGR__Call_DELETEFILE1
call fcn.0040bf32
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412916
push str.SCFileWipeOutW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x412912
push str._SCWIPEOUTMGR__GetProcAddress_NULL
call fcn.0040bf32
pop ecx
call fcn.0041270e
test eax, eax
jne 0x412916
push str._SCWIPEOUTMGR__Call_DELETEFILE2
jmp 0x4128d8
push ebx
call eax
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00437ed4
leave
ret

Function at 0x4129ad
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x44f097
call fcn.00437ee3
mov edi, ecx
push 0x44
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00437ff0
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00437ff0
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x60], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4584f8
push 0x45198c
push 0x471bb8
call fcn.00401ac3
add esp, 0x10
push str.SOMER011
lea eax, [ebp + 8]
push eax
mov ecx, 0x471e60
call fcn.00415e00
push eax
lea ecx, [edi + 0x804]
mov dword [ebp - 4], esi
call fcn.004038c0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004026bb
xor eax, eax
jmp 0x412a4d
xor eax, eax
inc eax
call fcn.00437fbb
ret 4
Function at 0x413c72
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x81c
lea ebp, [esp - 4]
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp + 0x81c], eax
push 0x54
mov eax, 0x44f2a1
call fcn.00437ee3
push 0x44
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00437ff0
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], 0x44
call fcn.00437ff0
add esp, 0x18
push 0x104
lea eax, [ebp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4706d0
lea ecx, [ebp]
call fcn.00408460
push str.SomDeletor.exe
lea ecx, [ebp]
mov dword [ebp - 4], esi
call fcn.00410d56
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00410d56
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x413cff
lea eax, [ebp + 4]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x413d20
push str.SOMUtil::SelfDeleteByProcess___CreateProcess_Error___
jmp 0x413d25
push str.SOMUtil::SelfDeleteByProcess___CreateProcess_Success___
push 0x4526c4
push 0x471c78
call fcn.004044b7
add esp, 0xc
push esi
push 1
lea ecx, [ebp]
call fcn.00401bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x81c]
xor ecx, ebp
call fcn.00437ed4
add ebp, 0x820
leave
ret

Function at 0x413d70
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x413d98
pop edi
pop esi
add esp, 0xc
ret
push ebx
push esi
call fcn.00419c78
mov ecx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413de7
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x453b0c
push ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueW
push ebx
test eax, eax
jne 0x413df0
call fcn.00419c6d
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
call fcn.00419c6d
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x414710
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov dword [esp + 4], 0
mov esi, 0x20019
call fcn.004145e0
cmp eax, 1
jne 0x41472e
mov esi, 0x20219
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push esi
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x41477e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
test eax, eax
je 0x414777
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
mov eax, dword [esp]
test eax, eax
je 0x41478c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret

Function at 0x414910
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46dff0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00437ff0
add esp, 0xc
mov edi, 0x104
lea ebx, [esp + 8]
call fcn.00414820
mov eax, ebx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x414953
mov edx, dword [str.SDSMAN.EXE]
mov ecx, dword [0x4593ec]
mov dword [eax], edx
mov edx, dword [0x4593f0]
mov dword [eax + 4], ecx
mov ecx, dword [0x4593f4]
mov dword [eax + 8], edx
mov edx, dword [0x4593f8]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4593fc]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push 0
push edx
mov dword [eax + 0x14], ecx
call fcn.0043bb4a
add esp, 8
cmp eax, 0xffffffff
jne 0x4149c1
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00437ed4
add esp, 0x20c
ret
lea ebx, [esp + 8]
call fcn.00414820
mov edi, ebx
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4149d0
push esi
lea eax, [esp + 0xc]
push 0
mov ecx, 7
mov esi, str.DSEDCO05.DLL
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0043bb4a
add esp, 8
pop esi
cmp eax, 0xffffffff
je 0x4149a8
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x414a15
mov edx, dword [str.icoreg.sys]
mov ecx, dword [0x4593b8]
mov dword [eax], edx
mov edx, dword [0x4593bc]
mov dword [eax + 4], ecx
mov ecx, dword [0x4593c0]
mov dword [eax + 8], edx
mov edx, dword [0x4593c4]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4593c8]
mov dword [eax + 0x10], edx
lea edx, [esp + 8]
push 0
push edx
mov dword [eax + 0x14], ecx
call fcn.0043bb4a
xor ecx, ecx
add esp, 8
cmp eax, 0xffffffff
setne cl
pop edi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00437ed4
add esp, 0x20c
ret
Function at 0x4154b0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x41562b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SFC_SKEY_SecretKey_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_SKEY_SecretKey_Free
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi]
push str.SFC_SKEY_SecretKey_FromBinary
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
push str.SFC_CIPHER_CTX_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_CIPHER_CTX_Free
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi]
push str.SFC_Cipher_Encrypt_Init
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi]
push str.SFC_Cipher_Encrypt_Update
push eax
call edi
mov ecx, dword [esi]
push str.SFC_Cipher_Encrypt_Final
push ecx
mov dword [esi + 0x1c], eax
call edi
mov edx, dword [esi]
push str.SFC_Cipher_Decrypt_Init
push edx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi]
push str.SFC_Cipher_Decrypt_Update
push eax
call edi
mov ecx, dword [esi]
push str.SFC_Cipher_Decrypt_Final
push ecx
mov dword [esi + 0x28], eax
call edi
mov edx, dword [esi]
push str.SFC_GetRandom
push edx
mov dword [esi + 0x2c], eax
call edi
mov dword [esi + 0x30], eax
mov eax, dword [esi]
push str.SFC_HASH_CTX_New
push eax
call edi
mov ecx, dword [esi]
push str.SFC_HASH_CTX_Free
push ecx
mov dword [esi + 0x34], eax
call edi
mov edx, dword [esi]
push str.SFC_Hash_Init
push edx
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
push str.SFC_Hash_Update
push eax
call edi
mov dword [esi + 0x40], eax
mov ecx, dword [esi]
push str.SFC_Hash_Final
push ecx
call edi
mov edx, dword [esi]
push str.SFC_Hash
push edx
mov dword [esi + 0x44], eax
call edi
cmp dword [esi + 4], 0
mov dword [esi + 0x48], eax
pop edi
je 0x41562b
cmp dword [esi + 8], 0
je 0x41562b
cmp dword [esi + 0xc], 0
je 0x41562b
cmp dword [esi + 0x10], 0
je 0x41562b
cmp dword [esi + 0x14], 0
je 0x41562b
cmp dword [esi + 0x18], 0
je 0x41562b
cmp dword [esi + 0x1c], 0
je 0x41562b
cmp dword [esi + 0x20], 0
je 0x41562b
cmp dword [esi + 0x24], 0
je 0x41562b
cmp dword [esi + 0x28], 0
je 0x41562b
cmp dword [esi + 0x2c], 0
je 0x41562b
cmp dword [esi + 0x30], 0
je 0x41562b
cmp dword [esi + 0x34], 0
je 0x41562b
cmp dword [esi + 0x38], 0
je 0x41562b
cmp dword [esi + 0x3c], 0
je 0x41562b
cmp dword [esi + 0x40], 0
je 0x41562b
cmp dword [esi + 0x44], 0
je 0x41562b
test eax, eax
je 0x41562b
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x416cc0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
mov esi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416cd0
mov ecx, dword [esi + 0x10]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x10]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, edi
mov dword [esi + 4], eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x416cf7
sub ecx, edi
xor edx, edx
inc ecx
test eax, eax
sete dl
pop edi
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
pop esi
mov eax, edx
ret 8

Function at 0x416d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
mov eax, dword [0x46dff0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
mov ebx, dword [esp + 0x98]
push esi
push edi
mov edi, dword [esp + 0x9c]
push 0x80
lea eax, [esp + 0x18]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x18], 0x80
call fcn.00437ff0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test eax, eax
jne 0x416daa
push ecx
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00437670
add esp, 0xc
mov eax, 1
jmp 0x416dac
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437ed4
add esp, 0x8c
ret 0xc
Function at 0x416ff0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x40
mov eax, dword [0x46dff0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, ecx
call fcn.00416fa0
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4170ee
cmp dword [esi + 4], eax
jne 0x41703c
mov ecx, esi
call fcn.00416fa0
test eax, eax
jne 0x41703c
mov eax, dword [esi + 0x14]
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00437ed4
add esp, 0x40
ret 4
xor eax, eax
push edi
mov edi, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov dword [esi + 8], edi
lea eax, [edi + 0x1d8]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417068
mov dword [esi + 0x14], 0
test edi, edi
je 0x4170ea
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 8]
movzx ecx, byte [eax + 0x199]
movzx edx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push edx
movzx edx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
push edx
movzx edx, byte [eax + 0x194]
push ecx
push edx
lea eax, [esp + 0x24]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00439637
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push ebx
push edx
call fcn.0043b723
add esp, 8
test eax, eax
je 0x417101
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov dword [esi + 8], ecx
test ecx, ecx
jne 0x417080
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00437ed4
add esp, 0x40
ret 4
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00437ed4
add esp, 0x40
ret 4