joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bd21
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push edi
mov edi, ecx
call fcn.0045be5c
xor ebx, ebx
lea eax, [ebp - 0x103]
push 0x103
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.0042a910
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
je 0x45bda0
dec eax
je 0x45bd82
dec eax
je 0x45bd64
push 2
pop eax
jmp 0x45be54
mov ecx, str.TUdTUE9LRVJWMkNSRUFURU1VVEVYUElHR1k
call fcn.0045fe87
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45bd76
jmp 0x45bdbc
mov ecx, str.TUdTUE9LRVJWMkNSRUFURU1VVEVY
call fcn.0045fe87
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45bd94
jmp 0x45bdbc
mov ecx, str.TUdTUE9LRVJWMkNSRUFURU1VVEVYU0I
call fcn.0045fe87
lea edx, [ebp - 0x104]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x45bdb2
push esi
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push eax
mov dword [edi + 0xd0c], eax
call esi
test eax, eax
jne 0x45be4c
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x45bde7
mov eax, dword [str._SEM]
mov dword [ecx], eax
mov al, byte [0x4a5d7c]
mov byte [ecx + 4], al
lea eax, [ebp - 0x104]
push eax
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push ebx
push eax
mov dword [edi + 0xd10], eax
call esi
test eax, eax
je 0x45be50
push dword [edi + 0xd0c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [edi + 0xd0c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0xd10]
mov dword [edi + 0xd0c], ebx
call esi
mov dword [edi + 0xd10], ebx
xor eax, eax
jmp 0x45be53
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45c0e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ecx, ecx
lea eax, [ebp - 4]
push ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [ebp + 0x14]
test eax, eax
jne 0x45c164
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [ebx]
inc eax
push eax
call fcn.0040627a
pop ecx
push ebx
mov edi, eax
push edi
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x45c166
test edi, edi
je 0x45c164
push edi
call fcn.0042490f
pop ecx
xor edi, edi
test edi, edi
je 0x45c170
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45c1d9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
lea eax, [ebp - 4]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push SysReAllocStringLen
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45c366
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x45c366
push esi
call fcn.00425a5c
mov dword [ebp - 0xc], eax
mov esi, 0x206
xor eax, eax
mov dword [ebp - 8], edx
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0042a910
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.0042a910
lea ecx, [ebx + 0xd8]
add esp, 0x1c
lea edx, [ebp - 0x214]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x45c27c
lea ecx, [ebx + 0x2e0]
lea edx, [ebp - 0x41c]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x45c299
push dword [ebx + 0x20]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
call esi
push dword [ebx + 0x20]
lea eax, [ebp - 0x41c]
push eax
call esi
lea eax, [ebx + 0x4e8]
push eax
push edi
call fcn.004257c9
pop ecx
pop ecx
test eax, eax
jne 0x45c34e
lea eax, [ebx + 0x6f0]
push eax
push edi
call fcn.004257c9
pop ecx
pop ecx
test eax, eax
jne 0x45c34e
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00428830
pop ecx
pop ecx
test eax, eax
je 0x45c312
lea eax, [ebp - 0x41c]
push edi
push eax
call fcn.00428830
pop ecx
pop ecx
test eax, eax
jne 0x45c366
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push 0
push 0x4a5cbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.PCMUID
push dword [ebp + 0xc]
call fcn.004257c9
pop ecx
pop ecx
test eax, eax
je 0x45c366
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push 0
push 0x4a5cec
jmp 0x45c35d
push 8
lea eax, [ebp - 0xc]
push eax
push 0xb
push 0
push 0x4a5c9c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x460d69
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, ecx
xor edi, edi
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.advapi32.dll
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.GetSecurityInfo
push ebx
call esi
push str.SetSecurityInfo
push ebx
mov dword [ebp - 8], eax
call esi
push str.SetEntriesInAclA
mov edi, eax
push ebx
mov dword [ebp - 0x24], edi
call esi
push str.AllocateAndInitializeSid
push ebx
mov dword [ebp - 0x10], eax
call esi
cmp dword [ebp - 8], 0
mov dword [ebp - 0x20], eax
je 0x460eda
test edi, edi
je 0x460eda
cmp dword [ebp - 0x10], 0
je 0x460eda
test eax, eax
je 0x460eda
xor edi, edi
push edi
push 0x2000000
push 3
push edi
push edi
push 0x60000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x460eda
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 4
push 1
push esi
call dword [ebp - 8]
cmp dword [ebp - 0x1c], edi
jne 0x460e32
cmp dword [ebp - 0xc], edi
jne 0x460ec1
xor ecx, ecx
mov word [ebp - 0x18], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 8], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push eax
call dword [ebp - 0x20]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0x28], eax
inc ecx
lea eax, [ebp - 4]
mov dword [ebp - 0x40], ecx
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10000000
push eax
xor edi, edi
mov dword [ebp - 0x3c], 3
push ecx
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
call dword [ebp - 0x10]
cmp dword [ebp - 4], edi
je 0x460eaf
push edi
push dword [ebp - 4]
push edi
push edi
push 4
push 1
push esi
call dword [ebp - 0x24]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461741
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x461765
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
push edx
push ecx
lea ecx, [ebp - 0x104]
call fcn.00407545
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x461799
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x104]
call fcn.004075c6
xor byte [esi], al
inc esi
dec edi
jne 0x461787
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x46179e
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov byte [eax + esi + 0x20], 0x80
inc dword [esi + 0x1c]
cmp eax, 0x37
mov eax, dword [esi + 0x1c]
jle 0x4617eb
jmp 0x4617c1
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x40
jl 0x4617b6
call fcn.0046182e
jmp 0x4617d8
mov eax, dword [esi + 0x1c]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0x38
jl 0x4617cd
jmp 0x4617f0
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x38
jl 0x4617e0
mov al, byte [esi + 0x1b]
mov ecx, esi
mov byte [esi + 0x58], al
mov al, byte [esi + 0x1a]
mov byte [esi + 0x59], al
mov eax, dword [esi + 0x18]
shr eax, 8
mov byte [esi + 0x5a], al
mov al, byte [esi + 0x18]
mov byte [esi + 0x5b], al
mov al, byte [esi + 0x17]
mov byte [esi + 0x5c], al
mov al, byte [esi + 0x16]
mov byte [esi + 0x5d], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [esi + 0x5e], al
mov al, byte [esi + 0x14]
mov byte [esi + 0x5f], al
pop esi
jmp fcn.0046182e
Function at 0x46182e
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
xor edi, edi
lea edx, [esi + 0x21]
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + edi*4 - 0x154], ecx
inc edi
cmp edi, 0x10
jl 0x461844
push 0x40
lea ecx, [ebp - 0x14c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
dec edx
jne 0x46187b
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov edi, dword [esi + 8]
and dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x10]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov ecx, ebx
not ecx
rol edx, 5
and ecx, esi
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x10]
add edx, ecx
mov ecx, dword [ebp - 8]
add ecx, 0x5a827999
mov dword [ebp - 8], esi
mov esi, edi
mov edi, ebx
add edx, dword [ebp + eax*4 - 0x154]
mov ebx, dword [ebp - 0xc]
add edx, ecx
ror edi, 2
inc eax
push 0x14
pop ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
cmp eax, ecx
jl 0x4618ae
mov dword [ebp - 4], esi
mov eax, esi
xor eax, edi
rol edx, 5
xor eax, ebx
add edx, eax
mov eax, dword [ebp - 8]
add edx, dword [ebp + ecx*4 - 0x154]
add eax, 0x6ed9eba1
add edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
ror edi, 2
inc ecx
mov dword [ebp - 0xc], edx
cmp ecx, 0x28
jl 0x4618f7
push 0x28
pop esi
mov ecx, edi
rol edx, 5
or ecx, ebx
add edx, 0x8f1bbcdc
add edx, dword [ebp - 8]
and ecx, eax
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + esi*4 - 0x154]
mov dword [ebp - 8], eax
add edx, ecx
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0xc]
ror edi, 2
inc esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
cmp esi, 0x3c
jl 0x461930
mov esi, dword [ebp - 0x14]
push 0x3c
pop ecx
xor eax, edi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, ebx
add eax, 0xca62c1d6
add eax, dword [ebp + ecx*4 - 0x154]
add edx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
ror edi, 2
inc ecx
mov dword [ebp - 0xc], edx
cmp ecx, 0x50
jl 0x461973
add dword [esi + 0xc], eax
add dword [esi + 8], edi
add dword [esi + 4], ebx
add dword [esi], edx
mov eax, dword [ebp - 8]
add dword [esi + 0x10], eax
and dword [esi + 0x1c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461a98
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], eax
mov eax, ecx
ret
Function at 0x462daf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
xor eax, eax
mov ebx, edx
push esi
push edi
lea edi, [ebp - 0x13]
mov edx, str.BlindCaffineSubstituteFamousCurtainTrickKingTinHalcyonDaysArapaho
stosd dword es:[edi], eax
push 0x41
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00461ace
pop ecx
push 5
lea ecx, [ebp - 0x14]
pop edi
xor edx, edx
lea esi, [ecx + 3]
mov al, byte [esi]
xor byte [ecx + edx], al
mov al, byte [ecx + edx]
xor byte [esi], al
mov al, byte [esi]
xor byte [ecx + edx], al
inc edx
dec esi
cmp edx, 2
jl 0x462de5
add ecx, 4
dec edi
jne 0x462de0
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
push 0x10
pop edx
call fcn.00461765
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x462e19
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 0xc], eax
inc edi
cmp dword [ebp + 0x14], edx
je 0x462e9d
mov edi, dword [ebp + 0x10]
inc edi
lea eax, [edi + edi]
mov dword [ebp - 8], eax
call fcn.0042cc00
mov esi, esp
lea eax, [edi + edi]
push eax
push 0
push esi
mov dword [ebp - 4], esi
call fcn.0042a910
add esp, 0xc
push edi
push ebx
push esi
call fcn.0042a2c0
add esp, 0xc
mov edx, esi
push edi
call fcn.00462daf
pop ecx
test edi, edi
je 0x462e8e
push edi
add esi, edi
push ebx
push esi
call fcn.0042a2c0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov edx, esi
push edi
call fcn.00462d23
mov esi, dword [ebp - 4]
pop ecx
mov eax, dword [ebp - 0xc]
mov ebx, esi
mov esi, dword [ebp - 8]
xor edx, edx
push 3
pop edi
jmp 0x462ea0
mov esi, dword [ebp + 0x10]
push edx
lea ecx, [ebp + 0xc]
push ecx
push edx
push 0x20006
push edx
push edx
push edx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x462edb
push esi
push ebx
push edi
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x462ede
mov esi, dword [ebp + 0x14]
mov eax, esi
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462eea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
push esi
push edi
test ebx, ebx
je 0x462f04
mov eax, dword [ebx]
jmp 0x462f06
xor eax, eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov edi, dword [ebp + 8]
test eax, eax
mov dword [ebp + 0x10], eax
cmove ecx, edx
mov dword [ebp + 0xc], ecx
mov esi, ecx
mov dword [ebp - 0xc], esi
test edi, edi
je 0x462f26
mov edx, dword [edi]
jmp 0x462f29
xor edx, edx
inc edx
and dword [ebp - 8], 0
cmp edx, 1
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
sete dl
cmp dword [ebp + 0x14], 0
mov dword [ebp - 8], edx
je 0x462f67
test ecx, ecx
je 0x462f67
mov dword [ebp - 0x14], 1
test edx, edx
je 0x462f6b
lea eax, [eax*2 + 2]
mov dword [ebp + 0x10], eax
call fcn.0042cc00
mov esi, esp
mov dword [ebp - 0xc], esi
jmp 0x462f6b
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [ebp - 0x18]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46304e
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x46304e
cmp dword [ebp - 0x14], eax
je 0x463058
push dword [ebp + 0x10]
mov edx, esi
call fcn.00462daf
cmp dword [ebp - 8], 0
pop ecx
je 0x463058
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp + 0x10]
lea edi, [eax + 1]
cmp edi, esi
jae 0x46301a
push esi
mov esi, dword [ebp - 0xc]
mov edx, esi
call fcn.00462daf
mov eax, dword [ebp + 0x10]
lea edx, [edi + esi]
sub eax, edi
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp + 0x10], eax
call fcn.00462d23
mov esi, dword [ebp + 0x10]
dec esi
pop ecx
mov dword [ebp + 0x10], esi
jmp 0x46301c
xor edi, edi
mov eax, dword [ebp - 0xc]
add eax, edi
mov edi, dword [ebp + 0xc]
push esi
push eax
push edi
call fcn.0042a2c0
add esp, 0xc
cmp esi, dword [ebx]
jae 0x46303a
mov byte [esi + edi], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x463043
mov dword [ebx], esi
test edi, edi
je 0x46304c
mov eax, dword [ebp - 4]
mov dword [edi], eax
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
jmp 0x46303d

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46306c
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x463084
xor eax, eax
ret
and eax, 0x10
ret
Function at 0x465f0b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x465f1a
xor al, al
ret
shr al, 4
and al, 1
ret

Function at 0x466003
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor eax, eax
mov dword [ebp - 0x14], 1
push esi
push edi
mov dword [ebp - 8], eax
mov edi, ecx
lea eax, [ebp - 0x44]
mov ebx, edx
push eax
push edi
call fcn.00426710
pop ecx
pop ecx
test eax, eax
jne 0x466079
push 0x4a6bf0
push edi
call fcn.004260ba
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
jne 0x466082
push edi
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.00425f47
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
call fcn.00465e7f
push dword [ebp - 8]
push str.__s__n
call fcn.00425f47
push dword [ebp - 8]
call fcn.004249b0
mov eax, dword [ebp + 8]
add esp, 0x14
test eax, eax
je 0x466079
and dword [eax], 0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and dword [ebx], 0
and dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x30]
push esi
call fcn.004249e8
mov dword [ebx], eax
pop ecx
test eax, eax
jne 0x4660d1
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x1e
jl 0x466089
cmp dword [ebx], 0
jne 0x4660ce
push edi
push str.Cabby:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0xc
jmp 0x466079
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x4660df
mov dword [eax], esi
test esi, esi
je 0x466183
mov eax, dword [ebp - 8]
mov edx, 0x8000
push dword [ebp - 0x10]
sub esi, eax
cmp esi, edx
cmova esi, edx
push esi
push 1
push ecx
call fcn.00426294
mov edx, eax
add esp, 0x10
mov eax, dword [ebp - 8]
cmp edx, esi
jne 0x466129
mov ecx, dword [ebp - 0xc]
add eax, edx
mov esi, dword [ebp - 0x30]
add ecx, edx
mov dword [ebp - 8], eax
mov edx, 0x8000
mov dword [ebp - 0xc], ecx
cmp eax, esi
jb 0x4660ef
jmp 0x466183
push edi
push eax
push esi
push str.Cabby:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
add esp, 0x14
call fcn.00465e7f
push dword [ebp - 8]
push str.__s__n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
push dword [ebp - 8]
call fcn.004249b0
push ebx
call fcn.004249b0
mov eax, dword [ebp + 8]
add esp, 0x14
test eax, eax
je 0x46617f
and dword [eax], 0
mov byte [ebp - 0x14], 0
push dword [ebp - 0x10]
call fcn.00426699
mov al, byte [ebp - 0x14]
pop ecx
jmp 0x46607b
Function at 0x4661bd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4661d0
sub edx, ecx
cmp edx, 0x104
jae 0x46634a
lea eax, [ebp - 0x38]
push eax
push edi
call fcn.00426710
pop ecx
pop ecx
test eax, eax
jne 0x466205
test dword [ebp - 0x32], 0x4000
je 0x466205
mov al, 1
jmp 0x46634c
lea edx, [ebp - 0x140]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x46620f
lea eax, [ebp - 0x140]
push 0x5c
push eax
call fcn.00425160
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x46631f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466238
sub ecx, edx
cmp ecx, 3
jbe 0x46627a
cmp byte [esi + 1], 0x5c
jne 0x46627a
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.00425160
pop ecx
pop ecx
test eax, eax
je 0x46631f
inc eax
push 0x5c
push eax
call fcn.00425160
pop ecx
pop ecx
test eax, eax
je 0x46631f
inc eax
jmp 0x46630f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46627f
sub ecx, edx
lea edx, [ebp - 0x140]
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x466291
sub edx, ebx
cmp ecx, edx
je 0x46631b
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x46630c
cmp al, 0x5c
jne 0x46631b
jmp 0x46630c
lea ecx, [ebp - 0x140]
mov byte [esi], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4662b7
sub ecx, edx
je 0x466309
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00426710
pop ecx
pop ecx
test eax, eax
jne 0x4662f8
test dword [ebp - 0x32], 0x4000
jne 0x466309
lea eax, [ebp - 0x140]
push eax
push edi
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.00425f47
add esp, 0xc
jmp 0x46634a
lea eax, [ebp - 0x140]
push eax
call fcn.00428242
pop ecx
test eax, eax
jne 0x466353
mov byte [esi], 0x5c
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.00425160
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x4662ab
mov ecx, edi
call fcn.00465f0b
test al, al
jne 0x4661fe
push edi
call fcn.00428242
pop ecx
test eax, eax
je 0x4661fe
push edi
push str.Unable_to_create_dir__s
call fcn.00425f47
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x140]
push eax
push str.Cant_create_dir__s:_mkdir_fails
jmp 0x466343