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

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.004042f0
mov dword [esp], eax
mov eax, dword [0x40b490]
push eax
push eax
call fcn.004063e2
lea ecx, [esp + 8]
pop edx
call fcn.004030f0
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x40b490]
push eax
push eax
push dword [esp + 8]
call fcn.00404380
lea ecx, [0x40b1fc]
pop edx
call fcn.004030f0
push dword [esp]
call fcn.00404360
push dword [0x40b1fc]
call fcn.004063d0
push dword [0x40b1fc]
call fcn.00406443
mov eax, dword [0x40b490]
push eax
push eax
call fcn.00406305
lea ecx, [0x40b1f4]
pop edx
call fcn.004030f0
mov eax, dword [esp + 0x14]
call fcn.004043d0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401d33
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.004043d0
mov ebx, eax
cmp ebx, 1
jne 0x401d0c
push dword [0x40b1f4]
call sub.SHLWAPI.dll_PathQuoteSpacesA
push dword [0x40b490]
mov edx, str.__
call fcn.00407a20
mov edx, dword [0x40b1f4]
call fcn.00407a20
lea ecx, [0x40b1f8]
pop edx
call fcn.004030f0
mov edx, dword [0x40b1fc]
push dword [0x40b490]
call fcn.00407a20
lea ecx, [0x40b1f4]
pop edx
call fcn.004030f0
mov dword [esp + 0xc], 2
jmp 0x401d45
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401d45
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.004043d0
mov dword [0x40b1ec], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.004043d0
mov dword [0x40b1f0], eax
mov eax, 1
jmp 0x401d78
push dword [esp + 4]
call fcn.00407a80
add esp, 0xc
pop ebx
ret 4
Function at 0x4014a3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x228]
sub esp, 0x23c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 8], eax
call fcn.00408219
sub esp, 0x10
test eax, eax
jne 0x4015a5
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x222]
mov dword [esp + 0xc], 0x105
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [ebp - 0x22c], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
mov edx, dword [ebp - 0x22c]
jne 0x40155b
test byte [ebp + 0x10], 1
mov eax, dword [ebp - 0x228]
je 0x401541
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4015a5
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.004014a3
sub esp, 0xc
test eax, eax
je 0x4014e8
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov dword [esp], 3
call fcn.00408f99
test eax, eax
push edx
je 0x401596
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
jmp 0x4015a5
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x403c28
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
cmp dword [ebp + 8], 0
mov eax, dword [0x41d880]
je 0x403c5a
test eax, eax
je 0x403c4b
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
mov dword [0x41d880], 0
jmp 0x403d0f
test eax, eax
je 0x403c70
mov dword [esp], 0
call fcn.0040900b
push edx
jmp 0x403d0f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x430dc0]
jbe 0x403d0f
cmp dword [0x430de8], 0
je 0x403cc6
test byte [0x430d54], 1
je 0x403d0f
lea ebx, [ebp - 0x88]
call fcn.00403b50
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str....__d__
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00407406
jmp 0x403d0d
mov eax, dword [0x430dec]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x403b82
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
sub esp, 0x14
mov dword [0x41d880], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push eax
push eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403f5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
test eax, eax
js 0x403fa2
add eax, dword [0x430db8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [0x429938], eax
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.00403d6e
test eax, eax
push ecx
mov edi, eax
js 0x4040ba
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.0040801b
sub esp, 0xc
test eax, eax
jne 0x403fe6
mov edi, 0xfffffffd
jmp 0x4040ba
mov eax, dword [ebp - 0x1c]
add dword [0x429938], 4
mov dword [esp], eax
call fcn.00403d6e
test eax, eax
push edx
mov edi, eax
js 0x4040ba
test esi, esi
jne 0x404073
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4040ba
cmp eax, 0x4000
mov edx, 0x4000
mov dword [esp + 4], 0x4258a0
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.0040801b
sub esp, 0xc
test eax, eax
je 0x403fdc
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x4258a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00408065
sub esp, 0xc
test eax, eax
je 0x4040b5
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x429938], eax
add edi, eax
jmp 0x404007
cmp dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 0
cmovle ebx, dword [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x40b010]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x403fdc
mov edi, dword [ebp - 0x20]
add dword [0x429938], edi
jmp 0x4040ba
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x407af0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x38]
lea edi, [ebp - 0x2c]
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0x40001
mov dword [ebp - 0x28], 0x40c970
mov dword [ebp - 0x24], 0x40c970
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x40c960
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
push edx
push edx
je 0x407b4d
xor eax, eax
jmp 0x407b7a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
jne 0x407b7a
mov dword [esp + 8], edi
mov dword [esp + 4], 0x80000007
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
sub esp, 0xc
test eax, eax
jne 0x407b49
call ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x407bb2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [0x430880], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], 0x430880
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
sub esp, 0x28
test eax, eax
je 0x407c2e
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push eax
mov eax, edx
leave
ret 4

Function at 0x407c34
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], 0
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x407ee7
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x407ef2
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00407eb9
cmp eax, 0xffffffff
push ecx
je 0x407f47
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x407f3f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x407f38
test byte [ebp + 0xc], 4
jne 0x407f47
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x407f47
mov eax, 1
jmp 0x407f49
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407f1c
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x407f52
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
push edx
jne 0x407f6d
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x407faa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, 0x65
sub esp, 0x20
mov ebx, dword [ebp + 8]
dec esi
je 0x408009
mov edx, dword [0x40c744]
mov eax, dword [0x40c740]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
div ecx
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
add word [ebp - 0xc], dx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
je 0x407fba
jmp 0x408010
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40801b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x40805c
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x408065
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x4080a6
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 0xc
Function at 0x4082dd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x14]
sub esp, 0x30
cmp dword [ebp + 0x18], 1
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x10], 0x800
sbb eax, eax
not eax
and eax, 0x100
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408219
sub esp, 0x10
test eax, eax
je 0x40832c
mov word [ebx], 0
jmp 0x408381
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push eax
mov word [ebx + 0x7fe], 0
jne 0x408325
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408325
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x4088fd
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 0xc]
mov dword [0x42f080], 0x55004e
mov dword [0x42f084], 0x4c
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test ebx, ebx
jne 0x408956
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42e880
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x408b4b
cmp eax, 0x400
jle 0x4089a7
jmp 0x408b4b
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00407f52
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0x42f080
mov dword [esp], ebx
call esi
sub esp, 0xc
test eax, eax
je 0x408b4b
cmp eax, 0x400
jle 0x408927
jmp 0x408b4b
mov dword [esp + 0xc], 0x42e880
mov dword [esp + 8], 0x42f080
mov dword [esp + 4], str._ls_ls_r_n
mov dword [esp], 0x42e480
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x430d60]
mov eax, dword [eax + 0x128]
mov dword [esp], 0x42e880
mov dword [esp + 4], eax
call fcn.004085c9
push esi
push esi
mov dword [esp + 8], 4
mov dword [esp + 4], 0xc0000000
mov dword [esp], 0x42e880
call fcn.00407f52
sub esp, 0xc
cmp eax, 0xffffffff
mov edi, eax
je 0x408b4b
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push ecx
push ecx
add eax, esi
mov dword [esp], 0x40
mov dword [ebp - 0x24], eax
add eax, 0xa
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
push ebx
push ebx
mov ebx, eax
je 0x408b41
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040801b
sub esp, 0xc
test eax, eax
je 0x408b41
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ebx
call fcn.00407e2f
test eax, eax
push edx
lea ecx, [ebx + esi]
push edx
jne 0x408aa1
add esi, 0xa
mov dword [esp + 4], str._Rename__r_n
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push eax
push eax
jmp 0x408ae1
add eax, 0xa
mov dword [esp + 4], 0x40c773
mov dword [ebp - 0x28], ecx
mov dword [esp], eax
call fcn.00407e2f
test eax, eax
push ecx
mov dword [ebp - 0x20], eax
push ecx
mov edx, esi
je 0x408ae1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
add edx, ebx
cmp dword [ebp - 0x20], ecx
jae 0x408ad9
dec ecx
mov al, byte [ecx + 1]
dec edx
mov byte [edx + 1], al
jmp 0x408aca
mov eax, dword [ebp - 0x20]
sub eax, ebx
lea edx, [eax + 1]
mov eax, dword [ebp - 0x1c]
add edx, ebx
mov dword [esp + 4], 0x42e480
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.00407e9a
add esi, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00408065
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408bd0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x42f880
mov dword [esp + 4], eax
call fcn.00408466
push ebx
push ebx
mov dword [esp], 0x42f880
call fcn.00407d9b
test eax, eax
push edx
jne 0x408c01
xor eax, eax
jmp 0x408c7d
mov dword [esp], eax
mov ebx, eax
call fcn.004084ea
test byte [0x430dc4], 0x80
push ecx
je 0x408c23
mov ax, word [ebx]
test ax, ax
je 0x408bfd
cmp ax, 0x5c
je 0x408bfd
sub ebx, 0x42f880
sar ebx, 1
mov dword [esp], 0x42f880
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x42f880
jge 0x408c62
call fcn.00408b98
test eax, eax
push edx
je 0x408c53
test byte [eax], 0x10
je 0x408bfd
mov dword [esp], 0x42f880
call fcn.00407d22
push eax
jmp 0x408c2b
call fcn.004084a2
push eax
mov dword [esp], 0x42f880
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
push edx
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4
Function at 0x408f09
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408f47
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408f4e
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
add edx, 0x40c748
add eax, ebx
mov dword [esp + 4], str._s_S.dll
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x40911c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4308e4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x409159
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409136
mov dword [ecx*4 + 0x4308e0], eax
inc ecx
cmp ecx, 0x100
jne 0x40912f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x40917c
inc edx
mov cl, byte [edx - 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4308e0]
jmp 0x409163
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x4019f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4341bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x44
lea eax, [ebp - 0x50]
mov edi, 1
push 0
push eax
call fcn.0040d7d0
add esp, 0xc
mov dword [ebp - 0x50], 0x44
cmp dword [ebp + 0x34], 8
lea edx, [ebp - 0x60]
lea eax, [ebp + 0x20]
xorps xmm0, xmm0
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push edx
cmovae ecx, dword [ebp + 8]
lea edx, [ebp - 0x50]
push edx
push eax
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push 0
movups xmmword [ebp - 0x60], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401a8a
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, edi
cmove edi, dword [ebp - 8]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x401ab1
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00409700
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp ecx, 8
jb 0x401ada
inc ecx
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.00409700
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040a9ae
mov esp, ebp
pop ebp
ret
Function at 0x401af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426770
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4341bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0040d7d0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
jne 0x401b74
xor ecx, ecx
jmp 0x401b8f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401b80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004095a0
push 0xc
push str.dimchain.log
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00405450
push 0xb0
lea eax, [ebp - 0x2e0]
push 0
push eax
call fcn.0040d7d0
add esp, 8
lea ecx, [ebp - 0x2e0]
call fcn.00402690
mov byte [ebp - 4], 2
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push ecx
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x2dc]
push 0xa
push eax
call fcn.00405600
test eax, eax
lea ecx, [ebp - 0x2e0]
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
jne 0x401c26
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x401c35
or eax, 4
jmp 0x401c35
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.004080f0
push ecx
lea ecx, [ebp - 0x2e0]
call fcn.004031f0
mov edx, 0x430914
lea ecx, [ebp - 0x2e0]
call fcn.00405c60
lea edx, [ebp + 8]
lea ecx, [ebp - 0x2e0]
call fcn.00405fe0
mov edx, 0x430918
lea ecx, [ebp - 0x2e0]
call fcn.00405c60
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x2e4], eax
lea ecx, [ebp - 0x2dc]
call fcn.00403120
mov eax, dword [ebp - 0x2e0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2e4], eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004099ba
mov eax, dword [ebp - 0x21c]
add esp, 4
cmp eax, 8
jb 0x401d0b
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00409700
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x401d3d
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00409700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a9ae
mov esp, ebp
pop ebp
ret