joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40d235
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x40d235
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push 0x432e80
push 0x24
push eax
call fcn.0040cdd0
add esp, 0x1c
test eax, eax
js 0x40d235
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.msi
push edi
call fcn.0040fe50
add esp, 0x14
test eax, eax
js 0x40d235
push 1
push 1
push dword [edi]
push ebx
call fcn.00410670
test eax, eax
jns 0x40d235
cmp dword [ebp + 8], 1
jne 0x40d235
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040d150
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret

Function at 0x40d250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40d335
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x40d335
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push 0x432e80
push 0x24
push eax
call fcn.0040cdd0
add esp, 0x1c
test eax, eax
js 0x40d335
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.mst
push edi
call fcn.0040fe50
add esp, 0x14
test eax, eax
js 0x40d335
push 1
push 1
push dword [edi]
push ebx
call fcn.00410670
test eax, eax
jns 0x40d335
cmp dword [ebp + 8], 1
jne 0x40d335
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040d250
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret
Function at 0x40ecd0
Capabilities:
Get session information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x834]
push esi
push edi
push eax
lea eax, [ebp - 0x828]
mov dword [ebp - 0x82c], edx
push eax
push 0x18
xor esi, esi
mov dword [ebp - 0x830], ecx
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x828], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x40eda5
mov edi, dword [ebp - 0x828]
test edi, edi
je 0x40ede3
mov ecx, dword [ebp - 0x830]
mov esi, 1
test ecx, ecx
je 0x40ed46
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x82c]
test ecx, ecx
je 0x40ed65
lea eax, [edi + 0x82]
push eax
push 0x104
push ecx
call fcn.00412a6b
add esp, 0xc
test ebx, ebx
je 0x40ed7b
lea eax, [edi + 0x60]
push eax
push 0x104
push ebx
call fcn.00412a6b
add esp, 0xc
mov eax, dword [ebp - 0x830]
push dword [eax]
lea eax, [ebp - 0x824]
push ebx
push dword [ebp - 0x82c]
push 0x433100
push 0x410
push eax
call fcn.00412a6b
add esp, 0x18
jmp 0x40edc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4331a8
lea eax, [ebp - 0x824]
push 0x410
push eax
call fcn.00412a6b
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x40ede3
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret

Function at 0x40ee00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40ee5e
push dword [esi]
lea eax, [ebp - 0x824]
push 0x433238
push 0x410
push eax
call fcn.00412a6b
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041153d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4332b8
lea ecx, [ebp - 0x824]
push 0x410
push ecx
call fcn.00412a6b
add esp, 0x10
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041153d
mov esp, ebp
pop ebp
ret
Function at 0x40eea0
Capabilities:
Get session information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x828]
push eax
push edi
mov esi, edx
mov dword [ebp - 0x828], 0
push esi
push ecx
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x40ef19
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x433328
lea ecx, [ebp - 0x824]
push 0x410
push ecx
call fcn.00412a6b
add esp, 0x10
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041153d
mov esp, ebp
pop ebp
ret
push dword [edi]
lea ecx, [ebp - 0x824]
push esi
push 0x4333c8
push 0x410
push ecx
call fcn.00412a6b
add esp, 0x14
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041153d
mov esp, ebp
pop ebp
ret

Function at 0x40ef60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x82c], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, ebx
mov ecx, eax
call fcn.0040ee00
mov esi, eax
test esi, esi
je 0x40f072
mov ecx, dword [ebx]
lea eax, [ebp - 0x828]
push eax
mov edx, 5
mov dword [ebp - 0x828], 0
call fcn.0040eea0
mov esi, eax
add esp, 4
test esi, esi
je 0x40f072
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x40effe
test edi, edi
je 0x40effe
push eax
push 0x104
push edi
call fcn.00412a6b
mov eax, dword [ebp - 0x828]
add esp, 0xc
test eax, eax
je 0x40eff4
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [ebp - 0x828], 0
mov ecx, dword [ebx]
lea eax, [ebp - 0x828]
push eax
mov edx, 7
call fcn.0040eea0
mov esi, eax
add esp, 4
test esi, esi
je 0x40f072
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x40f04e
mov ecx, dword [ebp - 0x82c]
test ecx, ecx
je 0x40f04e
push eax
push 0x104
push ecx
call fcn.00412a6b
mov eax, dword [ebp - 0x828]
add esp, 0xc
test eax, eax
je 0x40f04e
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push dword [ebx]
lea eax, [ebp - 0x824]
push dword [ebp - 0x82c]
push edi
push 0x433460
push 0x410
push eax
call fcn.00412a6b
add esp, 0x18
jmp 0x40f08b
push 0x433508
lea eax, [ebp - 0x824]
push 0x410
push eax
call fcn.00412a6b
add esp, 0xc
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret
Function at 0x40f0b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
push eax
push 1
push 0
push edx
push 0x80000002
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f153
push ebx
push esi
push edi
push eax
push 0x433648
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [edi]
mov dword [ebp - 0x214], eax
cmp ecx, 2
je 0x40f11b
cmp ecx, 1
jne 0x40f141
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
mov dword [ebx], eax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004145fb
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret
Function at 0x40f520
Capabilities:
Get user security identifier
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc40], eax
push 0x410
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc38], ebx
push ebx
push eax
mov edi, edx
mov dword [ebp - 0xc3c], ebx
mov esi, ecx
call fcn.00414300
push esi
push edi
push 0x433948
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00412a6b
lea eax, [ebp - 0x414]
push eax
push 0x433954
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.00412a6b
add esp, 0x30
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0xc38]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov eax, dword [ebp - 0xc38]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x40f5e0
push eax
push 8
call esi
push eax
call edi
mov ebx, eax
mov ecx, dword [ebp - 0xc3c]
test ecx, ecx
je 0x40f5f8
add ecx, ecx
push ecx
push 8
call esi
push eax
call edi
mov edi, eax
jmp 0x40f5fa
xor edi, edi
test ebx, ebx
je 0x40f689
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc3c]
push eax
push edi
lea eax, [ebp - 0xc38]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x40f64b
push dword [ebp - 0xc40]
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x40f679
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4336d8
jmp 0x40f657
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x433998
lea eax, [ebp - 0xc34]
push 0x410
push eax
call fcn.00412a6b
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
push ebx
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x40f68f
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x40f69b
push edi
push 0
call esi
push eax
call ebx
mov ebx, dword [ebp - 0xc40]
lea eax, [ebp - 0xc34]
push dword [ebx]
push 0x4339fc
push 0x410
push eax
call fcn.00412a6b
add esp, 0x10
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], eax
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret
Function at 0x410120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41015e
cmp eax, 3
je 0x410168
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410168
test al, 0x10
je 0x410168
xor esi, esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
movzx ecx, word [ebx]
mov eax, ebx
push edi
xor edi, edi
test cx, cx
je 0x410200
lea esp, [esp]
cmp cx, 0x5c
movzx ecx, word [eax + 2]
cmove edi, eax
add eax, 2
test cx, cx
jne 0x410180
test edi, edi
je 0x410200
push dword [ebp + 0xc]
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00410120
mov esi, eax
mov eax, 0x5c
mov word [edi], ax
test esi, esi
js 0x410215
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4101f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x4101df
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
test esi, esi
jle 0x410215
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov esi, 0x80070003
push esi
push 0x82
push 0x42b4d4
call fcn.00410a40
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x410220
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
push 0
mov dword [ebp - 0xc], 0
call fcn.00410330
mov esi, eax
test esi, esi
js 0x41031e
push edi
push 0
push 0x80
push dword [ebp + 0x10]
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4102b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x410298
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0xe7
push str.resrutil.cpp
call fcn.00410a40
jmp 0x410308
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410301
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4102e7
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push esi
push 0xed
push str.resrutil.cpp
call fcn.00410a40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jns 0x41031c
cmp dword [ebp - 0xc], 0
je 0x41031c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4104f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x218], eax
mov esi, 0x80004005
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x21c], eax
or edi, 0xffffffff
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41057f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x410568
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x41057f
push esi
push 0x4be
push 0x42b4f8
call fcn.00410a40
jmp 0x41064c
push ebx
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x410614
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push ebx
push dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push str._s_s_05d._s
push eax
call fcn.0040fe50
mov esi, eax
add esp, 0x18
test esi, esi
js 0x41064b
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410607
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4105f7
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070050
jne 0x410603
xor esi, esi
jmp 0x410607
test esi, esi
js 0x41064b
inc ebx
cmp ebx, 0x3e8
jl 0x410582
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x410623
mov dword [eax], edi
or edi, 0xffffffff
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x41063f
mov eax, dword [ebp - 0x210]
mov dword [ecx], eax
mov dword [ebp - 0x210], 0
cmp edi, 0xffffffff
je 0x41064b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x41065c
push eax
call fcn.00410030
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0041153d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410670
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, 1
test edi, edi
cmovne ebx, eax
cmp dword [ebp + 0x14], esi
je 0x41068f
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x410772
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x4106cb
cmp esi, 0x50
je 0x4106bd
cmp esi, 0xb7
jne 0x4106cb
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
cmp esi, 3
jne 0x410765
mov edx, dword [ebp + 0xc]
xor edi, edi
mov eax, edx
movzx ecx, word [edx]
test cx, cx
je 0x410757
cmp cx, 0x5c
movzx ecx, word [eax + 2]
cmove edi, eax
add eax, 2
test cx, cx
jne 0x4106e3
test edi, edi
je 0x410757
xor eax, eax
push eax
push edx
mov word [edi], ax
call fcn.00410120
mov esi, eax
mov eax, 0x5c
mov word [edi], ax
test esi, esi
js 0x410772
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x410772
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x41073c
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x410772
push esi
push 0x42e
push 0x42b4f8
call fcn.00410a40
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
mov esi, 0x80070003
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
test esi, esi
jle 0x410772
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x425cd2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004173d5
mov dword [ebp - 0x14], eax
cmp dword [0x439b9c], esi
jne 0x425dc5
push 0x800
push esi
push 0x431db8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x425d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x425ea5
push esi
push esi
push 0x431db8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x425ea5
push 0x431dd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x425ea5
push eax
call ebx
push 0x431ddc
push edi
mov dword [0x439b9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x431dec
push edi
mov dword [0x439ba0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x431e00
push edi
mov dword [0x439ba4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x439bac], eax
test eax, eax
je 0x425dc2
push 0x431e1c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x439ba8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x425dea
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x425ddd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x425dff
push 4
pop eax
jmp 0x425ea7
cmp dword [ebp - 0x14], esi
je 0x425dff
push dword [0x439b9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x425de4
mov eax, dword [0x439ba8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x425e5d
cmp dword [0x439bac], edi
je 0x425e5d
push eax
call ebx
push dword [0x439bac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x425e5d
test eax, eax
je 0x425e5d
call ecx
test eax, eax
je 0x425e52
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x425e52
test byte [ebp - 8], 1
jne 0x425e5d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x425e8d
mov eax, dword [0x439ba0]
cmp eax, edi
je 0x425e8a
push eax
call ebx
test eax, eax
je 0x425e8a
call eax
mov esi, eax
test esi, esi
je 0x425e8a
mov eax, dword [0x439ba4]
cmp eax, edi
je 0x425e8a
push eax
call ebx
test eax, eax
je 0x425e8a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x439b9c]
call ebx
test eax, eax
je 0x425ea5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x425ea7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041153d
mov esp, ebp
pop ebp
ret
Function at 0x10006560
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
xor eax, eax
test cl, 1
je 0x1000657b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x10006586
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10006591
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1000659c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x100065a7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x100065b2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x100065bd
bts eax, 1
test cl, 2
je 0x100065c6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x10006662
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10006653
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x10006570
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10006690
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1014200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x1013396c
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp - 8], 0
call fcn.100e526d
add esp, 0xc
test eax, eax
je 0x100066e0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10078509
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.100e55e3
add esp, 4
mov ebx, eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
test ebx, ebx
jne 0x10006716
call fcn.100e516f
add esp, 4
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10078509
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.100e54a8
add esp, 0x10
test eax, eax
je 0x1000676b
push esi
nop dword [eax + eax]
mov esi, ebx
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 0xc]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10006732
push dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
push 0x400
push 1
push ebx
call fcn.100e54a8
add esp, 0x10
test eax, eax
jne 0x10006730
pop esi
push ebx
call fcn.100e52b4
push dword [ebp - 8]
call fcn.100e516f
mov ecx, dword [ebp - 4]
add esp, 8
not dword [edi]
xor ecx, ebp
mov al, 1
pop ebx
pop edi
call fcn.10078509
mov esp, ebp
pop ebp
ret 0xc