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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x4058db
mov edx, edi
mov eax, ebx
call fcn.0040d3c0
mov eax, ebx
call fcn.0040d344
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040d3c0
mov eax, ebx
call fcn.0040d344
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402c00
mov edx, eax
mov eax, ebx
call fcn.0040d3c0
mov eax, ebx
call fcn.0040d344
inc eax
add ebx, eax
mov edx, 0x4125b0
mov eax, ebx
call fcn.0040d3c0
mov eax, ebx
call fcn.0040d344
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040d2bc
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x414e38]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.0040601c
cmp esi, eax
jne 0x405974
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
cmp byte [ebp + 8], 0
je 0x40598e
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405999
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x4059ca
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x4059ca
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x4059bf
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x4059ca
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406d00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405758
test eax, eax
je 0x406d26
test ebx, ebx
je 0x406d26
cmp word [ebx], 0
je 0x406d26
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406d2e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406d41
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004070fc
xor eax, eax
jmp 0x406d5c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x406d50
cmp eax, 3
jne 0x406d57
mov eax, 2
jmp 0x406d5c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x407070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405758
test eax, eax
je 0x40709b
test ebx, ebx
je 0x40709b
cmp word [ebx], 0
je 0x40709b
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x4070d0
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405758
test eax, eax
je 0x4070f2
test ebx, ebx
je 0x4070f2
cmp word [ebx], 0
je 0x4070f2
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x4070fc
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00405758
test eax, eax
je 0x407129
test ebx, ebx
je 0x407129
cmp word [ebx], 0
je 0x407129
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x407138
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x408f5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x414614
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x408f7c
call fcn.00408f24
mov eax, dword [ebp - 4]
jmp 0x408f95
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408f9d
test al, 7
jne 0x408f81
cmp esi, 8
jb 0x409026
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408fa6
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x409050
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x409030
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x40bd30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x40bd39
mov eax, dword [ebp - 4]
add esp, 0xfffffb2c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x14b8]
lea eax, [ebp - 0x4a4]
call fcn.004069fc
lea eax, [ebp - 0x478]
call fcn.004069fc
lea eax, [ebp - 0x44c]
call fcn.004069fc
push 0
lea ecx, [ebp - 0x10b8]
mov edx, ebx
mov eax, esi
call fcn.00405bf0
test al, al
jne 0x40bd96
xor eax, eax
jmp 0x40bee4
cmp byte [ebp - 0x10b8], 0
je 0x40bda8
cmp byte [ebp - 0x420], 0
jne 0x40bdaf
xor eax, eax
jmp 0x40bee4
lea eax, [ebp - 0x10b8]
call fcn.0040601c
lea edx, [ebp - 0x420]
call fcn.004071f4
test eax, eax
je 0x40bddf
mov eax, esi
call fcn.0040601c
lea edx, [ebp - 0x420]
call fcn.004071f4
test eax, eax
je 0x40bde6
xor eax, eax
jmp 0x40bee4
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00407298
push ebx
push str.rtmp_d
mov eax, edi
call fcn.0040601c
push eax
call fcn.0040d4ac
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.00407070
test al, al
je 0x40be24
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40bde8
mov eax, edi
xor edx, edx
call fcn.00407070
test al, al
je 0x40be38
xor eax, eax
jmp 0x40bee4
lea eax, [ebp - 0x18b8]
mov ecx, 0x400
mov edx, esi
call fcn.00407298
lea eax, [ebp - 0x10b8]
call fcn.0040601c
push eax
lea eax, [ebp - 0x18b8]
call fcn.0040601c
pop edx
call fcn.0040d3c0
push edi
lea ecx, [ebp - 0x18b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x40be7c
xor eax, eax
jmp 0x40bee4
lea eax, [ebp - 0x24d8]
call fcn.0040beec
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.00407070
test al, al
jne 0x40bea9
push 1
lea eax, [ebp - 0x24d8]
xor ecx, ecx
mov edx, esi
call fcn.0040c0cc
mov ebx, eax
lea eax, [ebp - 0x18b8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x40bed0
lea eax, [ebp - 0x24d8]
call fcn.0040c1bc
lea eax, [ebp - 0x24d8]
call fcn.0040c240
mov al, 1
push eax
lea eax, [ebp - 0x24d8]
mov edx, 2
call fcn.0040bf3c
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bf80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40bfa3
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40bfb4
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40bfc3
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40bfd0
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405758
test eax, eax
je 0x40bffd
test esi, esi
je 0x40bffd
cmp word [esi], 0
je 0x40bffd
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40c014
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40c02d
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40c02d
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40c097
mov dword [ebx + 4], edi
test esi, esi
je 0x40c062
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040db74
jmp 0x40c06b
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40c07e
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040d3c0
jmp 0x40c08d
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0040d97c
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040c19c
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c274
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x40c3a5
cmp dword [edi + 0xc], 0
je 0x40c2b3
mov eax, dword [edi + 0xc]
dec eax
je 0x40c29d
dec eax
je 0x40c2a9
jmp 0x40c2b3
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40c2b3
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
mov byte [ebp - 5], 0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], 0
je 0x40c30f
xor ebx, ebx
cmp esi, ebx
jle 0x40c32c
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x40c2e0
mov ecx, esi
sub ecx, ebx
jmp 0x40c2e5
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x40c32c
add ebx, 0x4000
cmp esi, ebx
jg 0x40c2c8
jmp 0x40c32c
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x40c3a1
cmp byte [edi + 0x14], 0
je 0x40c3a1
cmp dword [edi + 0xc], 0
jne 0x40c3a1
lea edx, [edi + 0x17]
mov eax, 0x414e18
call fcn.0040a31c
test al, al
je 0x40c38b
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40c2b3
cmp dword [ebp - 0xc], 0
jbe 0x40c2b3
mov eax, edi
call fcn.0040c5dc
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040c524
jmp 0x40c2b3
lea ecx, [edi + 0x17]
mov eax, 0x414e18
xor edx, edx
call fcn.0040a304
jmp 0x40c3a1
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c4a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40c4ca
cmp esi, 0x4e20
jle 0x40c4c0
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40c51a
mov eax, ebx
call fcn.0040c7e8
test al, al
je 0x40c501
cmp esi, 0x4e20
jle 0x40c501
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040c4a0
jmp 0x40c51d
cmp dword [ebx + 0xc], 1
jne 0x40c515
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40c515
xor eax, eax
jmp 0x40c51d
or eax, 0xffffffff
jmp 0x40c51d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40d90c
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x412748], 0
jne 0x40d925
call fcn.0040d550
mov dword [0x412744], eax
inc byte [0x412748]
call fcn.0040d550
sub eax, dword [0x412744]
cmp eax, 0x64
jle 0x40d961
cmp dword [0x413154], 0
je 0x40d95c
mov eax, 0x414e18
mov edx, 0xff
call fcn.0040a4b0
mov eax, 0x414e18
mov edx, 0xff
call fcn.0040a4a8
call fcn.00402c7c
ret
Function at 0x4010c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce771
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.00404eb0
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea ecx, [esi + 4]
call fcn.00404eb0
mov byte [esp + 0x14], 1
lea ecx, [esi + 8]
call fcn.00404eb0
mov byte [esp + 0x14], 2
lea ecx, [esi + 0xc]
call fcn.00404eb0
mov byte [esp + 0x14], 3
lea ecx, [esi + 0x10]
call fcn.00404eb0
mov byte [esp + 0x14], 4
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], 0xffffffff
mov byte [esi + 0x38], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea eax, [esi + 0x50]
push eax
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
call fcn.00419a60
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x401840
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d2675
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 4]
xor ebx, ebx
push eax
mov dword [esi], ebx
call fcn.004060d0
mov dword [esp + 0x14], ebx
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [esp + 0x14], 1
lea ecx, [esi + 0x38]
call fcn.0043dc30
mov byte [esp + 0x14], 2
push ebx
push ebx
push esi
push 0x4022e0
push ebx
push ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x6c], bl
call fcn.004aae8e
add esp, 0x18
mov dword [esi], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x401c70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4d420b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
call fcn.0041f160
push 0
push 0
push 0x513e78
push 0x401bc0
push 0
push 0
call fcn.004aae8e
push 0
push 0
push 0x513e78
push 0x401bd0
push 0
push 0
mov dword [0x513ab8], eax
call fcn.004aae8e
push 4
call fcn.004ab619
mov esi, eax
add esp, 0x34
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x401d18
push esi
push str.S_1_5_80_956008885_3418522649_1831038044_1853292631_2271478464
mov dword [esi], 0
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov dword [esp + 0x18], 0xffffffff
mov dword [0x513a38], esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
xor eax, eax
mov dword [esp + 0x18], 0xffffffff
mov dword [0x513a38], eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4102e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4d1609
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], 0
push 0x23
push esi
mov dword [esp + 0x1c], 0
call fcn.0044a490
add esp, 8
mov dword [esp + 0x20], 0
push 0xd
push str.ASR8Settings
mov ecx, esi
mov dword [esp + 0x1c], 1
call fcn.004177c0
cmp byte [esp + 0x2c], 0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
je 0x41036d
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x41036d
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
call fcn.00411280
push 3
push 0x4eb2ac
mov ecx, esi
call fcn.004177c0
cmp byte [esp + 0x2c], 0
je 0x410399
mov eax, dword [esi]
push eax
call ebp
test eax, eax
jne 0x410399
mov eax, dword [esi]
push 0
push eax
call edi
mov ecx, dword [esi]
call fcn.00411280
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x410c30
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4cb138
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov al, byte [esp + 0x38]
mov dword [esp + 0x20], 1
xor ebx, ebx
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov byte [esp + 0x20], 2
cmp byte [esp + 0x34], bl
je 0x410c91
cmp byte [0x513f88], bl
je 0x410c8a
cmp al, bl
je 0x410c8a
mov esi, 0x20119
jmp 0x410ca7
mov esi, 0x20019
jmp 0x410ca7
cmp byte [0x513f88], bl
je 0x410ca2
mov esi, 0x20106
cmp al, bl
jne 0x410ca7
mov esi, 0x20006
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x410cbc
push eax
call edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410cf1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
push eax
push ebx
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x410cf1
mov byte [esp + 0x13], 1
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x410d01
push eax
call edi
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x2c]
call fcn.00405020
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00405020
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x410f60
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4d14bb
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x820]
mov dword fs:[0], eax
mov edi, dword [esp + 0x830]
xor ebx, ebx
mov dword [esp + 0x828], ebx
mov eax, dword [esp + 0x834]
push eax
mov dword [esp + 0x14], ebx
call fcn.004110e0
mov eax, dword [esp + 0x838]
add esp, 4
cmp dword [eax - 4], 1
jle 0x410fe2
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x838]
call fcn.0040b700
mov eax, dword [esp + 0x834]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411085
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [esp + 0x14], ebx
jbe 0x41107a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea esp, [esp]
mov eax, dword [esp + 0x10]
push 0x400
lea edx, [esp + 0x20]
push edx
push esi
push eax
call edi
test eax, eax
jne 0x411073
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.004054b0
mov byte [esp + 0x82c], 1
mov eax, dword [esp + 0x14]
push eax
mov byte [esp + 0x830], bl
call fcn.00410f60
add esp, 8
inc esi
cmp esi, dword [esp + 0x14]
jb 0x411030
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x828], 0xffffffff
mov eax, dword [esp + 0x834]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4110b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x820]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004aa641
add esp, 0x81c
ret

Function at 0x411510
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x244
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x240], eax
push esi
push edi
lea esi, [esp + 8]
mov edi, ecx
call fcn.00417e60
mov eax, dword [eax + 8]
push 0
push 2
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x41155f
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x411580
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004aa641
add esp, 0x244
ret
lea edx, [esp + 0x14]
push edx
call fcn.00417f50
lea eax, [esp + 0x14]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x411580
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x248]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004aa641
add esp, 0x244
ret
Function at 0x412130
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d1448
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5000f4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor esi, esi
push esi
mov edi, ecx
push 0x64
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], esi
mov byte [esp + 0x38], 0
call fcn.00407ab0
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov ebx, 1
mov dword [esp + 0x14], ebx
dec eax
or ebx, esi
cmp dword [esp + 0x44], 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
jae 0x4121ba
lea ebp, [esp + 0x30]
lea esi, [esp + 0x20]
call fcn.00418090
mov edx, dword [esp + 0x5c]
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi]
push ebp
push edx
mov edx, dword [eax + 8]
push ecx
call edx
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4121e8
test esi, esi
je 0x4121e8
mov al, 1
jmp 0x4121ea
xor al, al
test bl, 1
je 0x4121f6
and ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
test al, al
je 0x412237
cmp esi, dword [esp + 0x40]
jbe 0x412205
call fcn.004ab09b
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp dword [esp + 0x44], edi
jae 0x412218
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x41222a
lea eax, [esp + 0x30]
push eax
call fcn.004abcd7
add esp, 4
mov esi, eax
jmp 0x412240
mov esi, dword [esp + 0x1c]
mov edi, 0x10
mov dword [esp + 0x54], 0xffffffff
cmp dword [esp + 0x44], edi
jb 0x41225b
mov eax, dword [esp + 0x30]
push eax
call fcn.0045a597
add esp, 4
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004aa641
add esp, 0x44
ret