joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403822
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp + 0xf94], eax
push ebx
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x6b]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x6c], bl
call fcn.00437ff0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 8
mov byte [ebp - 0x74], bl
mov byte [ebp - 0x73], bl
mov byte [ebp - 0x72], bl
mov byte [ebp - 0x71], bl
mov byte [ebp - 0x70], bl
mov byte [ebp - 0x6f], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4033c8
lea eax, [ebp - 0x80]
push eax
push 0x1000
lea eax, [ebp - 0x6c]
push eax
push 2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x403349
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_GetTokenInformation_Fail___d_
jmp 0x4033d4
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403378
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_AllocateAndInitializeSid_Fail___d_
jmp 0x4033d4
push esi
xor esi, esi
cmp dword [ebp - 0x6c], ebx
jbe 0x4033a2
push edi
lea edi, [ebp - 0x68]
push dword [edi]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40339e
inc esi
add edi, 8
cmp esi, dword [ebp - 0x6c]
jb 0x403384
jmp 0x4033a1
xor ebx, ebx
inc ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_EqualSid___d_
push 0x45198c
push 0x46fa40
call fcn.00401ac3
add esp, 0x10
mov eax, ebx
pop esi
jmp 0x4033e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CExecuteEnvironMent::QueryIfUserIsAdmin:_OpenProcessToken_Fail___d_
push 0x45198c
push 0x46fa40
call fcn.00401ac3
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp + 0xf94]
xor ecx, ebp
pop ebx
call fcn.00437ed4
add ebp, 0xf98
leave
ret
push esi
mov esi, ecx
call fcn.0040257d
mov ecx, esi
test eax, eax
je 0x403836
pop esi
jmp 0x4032b4
call fcn.00403145
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x403bbb
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jle 0x403be2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x18]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x403bd5
pop esi
pop edi
ret 0x10
Function at 0x4044b7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x5c], bl
jne 0x404562
test byte [esi + 0x58], 8
je 0x404562
push 0x7ff
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call fcn.00437ff0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x804]
push eax
call fcn.00439732
push 0xfff
lea eax, [ebp - 0x1803]
push ebx
push eax
mov byte [ebp - 0x1804], bl
call fcn.00437ff0
lea eax, [ebp - 0x804]
push eax
push edi
lea eax, [ebp - 0x1804]
push str.__s___s
push eax
call fcn.00439637
add esp, 0x34
lea eax, [ebp - 0x1804]
push eax
cmp byte [esi + 0x5d], bl
je 0x40455c
mov ecx, esi
call fcn.00403dfd
jmp 0x404562
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437ed4
leave
ret
Function at 0x404d71
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 7
mov esi, ecx
pop ecx
mov byte [ebp - 0x2c], 0
lea edi, [ebp - 0x2b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [ebp + 8]
stosb byte es:[edi], al
xor eax, eax
push 7
mov byte [ebp - 0x4c], 0
pop ecx
lea edi, [ebp - 0x4b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x451f5c
push ebx
stosb byte es:[edi], al
call fcn.0043938f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x404df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.CExtractManager::InitSomInfo:_fopen_error__s___d_
push 0x45198c
push 0x471470
call fcn.00401ac3
add esp, 0x14
xor eax, eax
jmp 0x404f07
push 0x10
lea ebx, [esi + 0x19b0]
push 0
push ebx
call fcn.00437ff0
push 0
push 0x3e8
push edi
call fcn.0043b0bd
push edi
push 1
lea eax, [ebp - 0x2c]
push 0x11
push eax
call fcn.0043b3e2
push edi
push 1
lea eax, [ebp - 0x4c]
push 7
push eax
call fcn.0043b3e2
push edi
push 1
lea eax, [ebp - 0xc]
push 1
push eax
call fcn.0043b3e2
add esp, 0x48
push edi
push 1
push 0x10
push ebx
call fcn.0043b3e2
push edi
call fcn.0043924d
push 0x11
lea eax, [ebp - 0x2c]
push str.SOMDOCUMENTNORMAL
xor edi, edi
push eax
mov dword [esi + 0x1450], edi
call fcn.004399b3
add esp, 0x20
mov ebx, 0x471470
test eax, eax
jne 0x404e78
mov dword [esi + 0x1450], edi
jmp 0x404ed1
push 0x11
lea eax, [ebp - 0x2c]
push str.SOMDOCUMENTOLESOM
push eax
call fcn.004399b3
add esp, 0xc
test eax, eax
jne 0x404e9b
mov dword [esi + 0x1450], 1
jmp 0x404ed1
push 0x11
lea eax, [ebp - 0x2c]
push str.SOMDOCUMENTSIMPLE
push eax
call fcn.004399b3
add esp, 0xc
test eax, eax
jne 0x404ebe
mov dword [esi + 0x1450], 2
jmp 0x404ed1
push str.CExtractManager::InitSomInfo:_somType_Check_Error__
push 0x45198c
push ebx
call fcn.00401ac3
add esp, 0xc
add esi, 0x1454
cmp byte [ebp - 0xc], 0x52
mov dword [esi], edi
jne 0x404ee3
mov dword [esi], edi
jmp 0x404f04
cmp byte [ebp - 0xc], 0x41
jne 0x404ef1
mov dword [esi], 1
jmp 0x404f04
push str.CExtractManager::InitSomInfo:_somEncType_Check_Error__
push 0x45198c
push ebx
call fcn.00401ac3
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437ed4
leave
ret 4
Function at 0x405be6
Capabilities:
Get common file path

Disassembly:
push 0x938
mov eax, 0x44e4e9
call fcn.00437f4c
mov ebx, dword [ebp + 8]
mov esi, 0x104
push esi
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00437ff0
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004042e6
add esp, 0x14
lea eax, [ebp - 0x32c]
push eax
mov dword [ebp - 0x32c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405d1a
cmp dword [ebp - 0x31c], 2
lea eax, [ebp - 0x218]
jne 0x405c8d
push esi
push edi
push eax
call fcn.00437ff0
add esp, 0xc
push 1
push 0x1c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push str.SOM_
push eax
call fcn.0043947d
lea eax, [ebp - 0x218]
push eax
call fcn.0043b5e3
add esp, 0xc
jmp 0x405d1a
push ecx
mov ecx, esp
mov dword [ebp - 0x944], esp
push eax
call fcn.00403a43
lea ecx, [ebp - 0x93c]
call fcn.00414000
push esi
lea eax, [ebp - 0x218]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00437ff0
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
lea ecx, [ebp - 0x93c]
call fcn.00414230
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call fcn.004394ab
pop ecx
pop ecx
mov ecx, dword [ebp - 0x940]
add ecx, 0xfffffff0
call fcn.004026bb
lea eax, [ebp - 0x218]
push 0x451c08
push eax
call fcn.0043947d
lea eax, [ebp - 0x218]
push eax
call fcn.0043b5e3
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x93c]
call fcn.00413fb0
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.004394ab
pop ecx
pop ecx
call fcn.00437fcf
ret 4
Function at 0x40648e
Capabilities:
Get common file path

Disassembly:
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea ebp, [ebx + 0xc20]
push ebp
call fcn.00405be6
push 0x453b0c
push ebp
call fcn.0043947d
push ebp
call fcn.0043b5e3
add esp, 0xc
mov edi, 0x45198c
mov esi, 0x471470
test eax, eax
jne 0x4064d2
push ebp
push str.CExtractManager::SetDirectory:_set_TEMP___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push str.image_
push ebp
call fcn.0043947d
push ebp
call fcn.0043b5e3
add esp, 0xc
test eax, eax
jne 0x4064fa
push ebp
push str.CExtractManager::SetDirectory:_set_TEMP_image___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push 0x208
push 0
push ebp
call fcn.00437ff0
add esp, 0xc
push ebp
mov ecx, ebx
call fcn.00405be6
push ebp
push str.CExtractManager::SetDirectory:_TEMP___s_
push edi
push esi
call fcn.00401ac3
lea ebp, [ebx + 0x810]
push 0x104
push ebp
call fcn.004042e6
push 0x453b0c
push ebp
call fcn.0043947d
push ebp
call fcn.0043b5e3
add esp, 0x24
test eax, eax
jne 0x406558
push ebp
push str.CExtractManager::SetDirectory:_set_WIN___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push ebp
push str.CExtractManager::SetDirectory:_WIN___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push 0x104
lea ebp, [ebx + 0xa18]
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x453b0c
push ebp
call fcn.0043947d
push ebp
call fcn.0043b5e3
add esp, 0xc
test eax, eax
jne 0x4065a2
push ebp
push str.CExtractManager::SetDirectory:_set_SYS32___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push ebp
push str.CExtractManager::SetDirectory:_SYS32___s_
push edi
push esi
call fcn.00401ac3
lea ebp, [ebx + 0xe28]
push 0x104
push ebp
call fcn.004042e6
push str.Softcamp
push ebp
call fcn.0043947d
push ebp
call fcn.0043b5e3
add esp, 0x24
test eax, eax
jne 0x4065e8
push ebp
push str.CExtractManager::SetDirectory:_set_SDS___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push str._sds_
push ebp
call fcn.0043947d
push ebp
call fcn.0043b5e3
add esp, 0xc
test eax, eax
jne 0x406610
push ebp
push str.CExtractManager::SetDirectory:_set_SDS___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
push ebp
push str.CExtractManager::SetDirectory:_SDS___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
lea ebp, [ebx + 0x1030]
push ebp
mov ecx, ebx
call fcn.00405214
push ebp
push str.CExtractManager::SetDirectory:_CUR___s_
push edi
push esi
call fcn.00401ac3
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407e7a
Capabilities:
Check if file exists
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, 0x80
cmp eax, 1
jne 0x407ea7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push esi
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x407ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CreateSomFile:_CreateError__FileName:__s___x_
push 0x45198c
push 0x471530
call fcn.00401ac3
add esp, 0x14
xor eax, eax
jmp 0x407ffe
mov edi, dword [ebp + 0x14]
lea eax, [edi + 0x10]
push eax
call fcn.00419c78
mov esi, eax
lea eax, [edi + 0x10]
push eax
push ebx
push esi
mov dword [ebp + 0x14], esi
call fcn.00437ff0
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0043b0bd
add esp, 0x1c
test eax, eax
je 0x407f22
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407ee1
push dword [ebp + 8]
push edi
push 1
push esi
call fcn.0043b3e2
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0xa
push str.SCDSSS02
push dword [ebp - 4]
mov byte [esi + edi], bl
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
test eax, eax
jne 0x407f6b
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_HEADER_FileName:__s_
push 0x45198c
push 0x471530
call fcn.00401ac3
add esp, 0x10
jmp 0x407f17
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
push dword [ebp + 0x18]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x407f88
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_HEADER_SIZE_FileName:__s_
jmp 0x407f57
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
push dword [ebp + 0x1c]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x407fa5
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_Key_FileName:__s_
jmp 0x407f57
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x407fc1
push dword [ebp + 0xc]
push str.CreateSomFile:_WriteError_Data_FileName:__s_
jmp 0x407f57
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
call fcn.00419c6d
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
add eax, 4
push eax
call fcn.004394ab
push dword [ebp + 0xc]
push 0x454c30
push 0x45198c
push 0x471530
call fcn.00401ac3
xor eax, eax
add esp, 0x1c
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x409816
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
mov edi, 0x20019
call fcn.0040bc1e
cmp eax, 1
jne 0x409835
mov edi, 0x20219
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409873
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], esi
je 0x40986e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x409883
cmp dword [ebp - 4], esi
je 0x409881
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x409b46
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
lea eax, [esi + 0x210]
push 0
push eax
mov dword [ebp - 0x430], eax
call fcn.00437ff0
mov edi, dword [esi]
add esp, 0xc
test edi, edi
je 0x409c1d
and dword [ebp - 0x42c], 0
push 0x424
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.00437ff0
add esp, 0xc
push edi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x409c1d
lea eax, [ebp - 0x42c]
push eax
push edi
mov dword [ebp - 0x42c], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x409c16
add esi, 8
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00438a64
pop ecx
pop ecx
test eax, eax
je 0x409bf4
lea eax, [ebp - 0x42c]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x409bce
jmp 0x409c16
lea eax, [ebp - 0x20c]
push eax
call fcn.004383c0
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x430]
call fcn.0043bb62
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00437ed4
leave
ret 4
Function at 0x409f0d
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push esi
push edi
mov edi, ecx
call fcn.00409c76
xor esi, esi
push 0x228
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00437ff0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jne 0x409f5c
xor eax, eax
jmp 0x409fd1
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x409fc6
push ebx
lea ebx, [edi + 4]
push 0x418
call fcn.00419c3e
pop ecx
mov esi, eax
push esi
mov ecx, ebx
call fcn.00409e66
mov eax, dword [ebp - 0x74]
mov dword [esi], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 4], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [esi + 8]
push 0x45550c
push eax
call fcn.004393a6
add esp, 0xc
push esi
mov ecx, edi
call fcn.00409b46
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409f75
xor esi, esi
inc esi
pop ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp + 0x1b0]
pop edi
xor ecx, ebp
pop esi
call fcn.00437ed4
add ebp, 0x1b4
leave
ret
Function at 0x40bcb1
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 [0x4718c4], bl
jne 0x40bd6d
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 + 0x4718b8], eax
cmp eax, ebx
je 0x40be2c
mov ecx, edi
dec ecx
je 0x40bd51
dec ecx
jne 0x40bd60
xor esi, esi
call fcn.00438b09
mov ecx, dword [0x4718c0]
mov byte [ecx + esi], al
inc esi
cmp esi, 0x10000
jb 0x40bd15
mov eax, dword [0x4718c0]
mov byte [eax], 8
mov eax, dword [0x4718c0]
mov byte [eax + 1], 8
mov eax, dword [0x4718c0]
mov byte [eax + 2], 7
mov eax, dword [0x4718c0]
mov byte [eax + 3], 5
jmp 0x40bd60
push esi
push 0xff
push eax
call fcn.00437ff0
add esp, 0xc
inc edi
cmp edi, 3
jb 0x40bce8
mov byte [0x4718c4], 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 0x40bd9a
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], 0x4718b8
cmp dword [ebp - 4], ebx
je 0x40bdba
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 0x40be0a
ja 0x40bdcb
cmp dword [ebp + 0xc], ebx
jbe 0x40be0a
mov eax, dword [ebp + 0xc]
sub eax, esi
mov ecx, 0x10000
cmp eax, ecx
jbe 0x40bddb
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 0x40be4a
add esi, dword [ebp - 0x10]
adc dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x24], eax
jb 0x40bdcb
ja 0x40be0a
cmp esi, dword [ebp + 0xc]
jb 0x40bdcb
inc dword [ebp - 4]
add dword [ebp - 0xc], 4
cmp dword [ebp - 4], 3
jb 0x40bda4
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jb 0x40bd84
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor esi, esi
cmp edi, ebx
jbe 0x40be4a
push 0x8000
push ebx
push dword [esi*4 + 0x4718b8]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
inc esi
cmp esi, edi
jb 0x40be32
xor eax, eax
jmp 0x40be27
Function at 0x40bf32
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004385c0
mov eax, dword [0x46dff0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.00437ff0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0xffe
push 0x1000
push eax
call fcn.00438dd7
add esp, 0x20
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437ed4
leave
ret
Function at 0x40c271
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 0x40c29f
push str._SCWIPEOUTMGR__Unused_WipeOut_Function
call fcn.0040bf32
pop ecx
xor eax, eax
jmp 0x40c38d
push ebx
call fcn.004383c0
cmp eax, 0xff
pop ecx
lea eax, [ebp - 0x20c]
jbe 0x40c2cb
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x40c2da
push str._SCWIPEOUTMGR__Short_Path_Name_NOT_Found
jmp 0x40c292
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 0x40c2fc
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 0x40c33c
push str._SCWIPEOUTMGR__FindFirstFileW_::_Return_INVALID_HANDLE_VALUE
jmp 0x40c292
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x43c]
mov eax, 0x186a0
cmp ecx, eax
ja 0x40c35b
cmp dword [ebp - 0x440], 0
jbe 0x40c35d
mov ecx, eax
push esi
push ecx
push dword [ebp - 0x440]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bf9d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c38a
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 0x40c399
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 0x40c44a
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 0x40c44a
push str._SCWIPEOUTMGR__LoadLibraryW_NULL
call fcn.0040bf32
pop ecx
call fcn.0040c271
test eax, eax
jne 0x40c479
push str._SCWIPEOUTMGR__Call_DELETEFILE1
call fcn.0040bf32
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40c479
push str.SCFileWipeOutW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40c475
push str._SCWIPEOUTMGR__GetProcAddress_NULL
call fcn.0040bf32
pop ecx
call fcn.0040c271
test eax, eax
jne 0x40c479
push str._SCWIPEOUTMGR__Call_DELETEFILE2
jmp 0x40c43b
push ebx
call eax
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00437ed4
leave
ret
Function at 0x40cb1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x46fa30]
sub esp, 0x10
cmp eax, 3
je 0x40cbde
test eax, eax
je 0x40cbde
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWARESOFTCAMPSoftCamp_Document_SecurityDAT
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40cb85
push str.IsAnsiDSClient_:_Reg_Open_Fail.._DSClient_Not_Installed_...
push 0x45198c
push 0x4718c8
call fcn.00401ac3
add esp, 0xc
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.UNICL
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cb80
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
mov eax, 0x4569f4
je 0x40cbbe
mov eax, str.ANSI
push eax
push str.IsAnsiDSClient_:_Key_Value___s_
push 0x45198c
push 0x4718c8
call fcn.00401ac3
add esp, 0x10
cmp dword [ebp - 8], 1
je 0x40cbf5
jmp 0x40cb80
push str.IsAnsiDSClient_:_GetDSInstalledProduct____VERSION_PRODUCT_OS
push 0x45198c
push 0x4718c8
call fcn.00401ac3
add esp, 0xc
xor eax, eax
leave
ret