joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456b05
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00450463
xor ebx, ebx
cmp dword [0x480a88], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x456bdb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x456cbb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46f010
push edi
call esi
cmp eax, ebx
je 0x456cbb
push eax
call fcn.004503f5
mov dword [esp], 0x46f000
push edi
mov dword [0x480a88], eax
call esi
push eax
call fcn.004503f5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x480a8c], eax
call esi
push eax
call fcn.004503f5
mov dword [0x480a90], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044ee35
test eax, eax
pop ecx
pop ecx
je 0x456ba9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044ce5e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x456bdb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004503f5
cmp eax, ebx
pop ecx
mov dword [0x480a98], eax
je 0x456bdb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004503f5
pop ecx
mov dword [0x480a94], eax
mov eax, dword [0x480a94]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x456c60
cmp dword [0x480a98], ecx
je 0x456c60
push eax
call fcn.0045046c
push dword [0x480a98]
mov esi, eax
call fcn.0045046c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x456c60
cmp edi, ebx
je 0x456c60
call esi
cmp eax, ebx
je 0x456c2d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x456c2d
test byte [ebp - 0x18], 1
jne 0x456c60
lea eax, [ebp - 0x10]
push eax
call fcn.0044ee6c
test eax, eax
pop ecx
je 0x456c48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044ce5e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x456c57
or dword [ebp + 0x10], 0x200000
jmp 0x456c9b
or dword [ebp + 0x10], 0x40000
jmp 0x456c9b
mov eax, dword [0x480a8c]
cmp eax, dword [ebp - 8]
je 0x456c9b
push eax
call fcn.0045046c
cmp eax, ebx
pop ecx
je 0x456c9b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x456c9b
mov eax, dword [0x480a90]
cmp eax, dword [ebp - 8]
je 0x456c9b
push eax
call fcn.0045046c
cmp eax, ebx
pop ecx
je 0x456c9b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x480a88]
call fcn.0045046c
cmp eax, ebx
pop ecx
je 0x456cbb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x456cbd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45d670
Capabilities:
Create service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468e18
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 2
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x45d6de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45d6bf
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
call esi
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.00464350
add esp, 0xc
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x44]
push 0
push ecx
push edx
push 0x10000000
push eax
push eax
push esi
mov dword [esp + 0x58], 0
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x45d773
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45d73c
call esi
mov esi, eax
jmp 0x45d74c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.00464350
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x45d9b0
Capabilities:
Start service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468e60
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0x10000000
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x45da1d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45da00
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call esi
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00464350
add esp, 0xc
mov eax, dword [edi]
push 0x10000000
push eax
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x45da74
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45da62
call esi
mov esi, eax
jmp 0x45dac2
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x45dac2
push esi
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00464350
add esp, 0xc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x45dae7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x45daa4
call esi
mov esi, eax
jmp 0x45dab4
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [esp + 0x18]
push eax
mov byte [esp + 0x28], 0
call dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
pop ebp
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x28], 0
call dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
pop ebp
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x45db20
Capabilities:
Query service status

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468e80
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
push SysReAllocStringLen
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x45db62
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00464350
add esp, 0xc
mov eax, dword [edi]
push SysReAllocStringLen
push eax
push esi
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x45dbba
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x44], 0xffffffff
call dword [esp + 0x10]
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push esi
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.00464350
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x40], 0
push ecx
jne 0x45dc0c
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x44], 0xffffffff
call dword [esp + 0x10]
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
xor eax, eax
cmp dword [esp + 0x24], 4
sete al
mov esi, eax
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x44], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
pop ebp
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45dd50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x25c
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x45ddd5
push esi
push 0x46f9f8
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x46f920
lea ecx, [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x268]
push edx
lea eax, [esp + 0x10]
push eax
call esi
push 0x46f9f0
lea ecx, [esp + 0x10]
push ecx
call esi
push 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [edi]
add eax, eax
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
xor eax, eax
pop edi
add esp, 0x25c
ret 4
mov eax, 0xfffffffe
pop edi
add esp, 0x25c
ret 4
Function at 0x45ddf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4b4
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x45dea0
push esi
push 0x46f9fc
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x46f920
lea ecx, [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x4c0]
push edx
lea eax, [esp + 0x10]
push eax
call esi
push 0x46f9f8
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x46f920
lea edx, [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x4c4]
push eax
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x46f9f0
lea edx, [esp + 0x10]
push edx
call esi
push 0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
mov eax, dword [edi]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
xor eax, eax
pop edi
add esp, 0x4b4
ret 8
mov eax, 0xfffffffe
pop edi
add esp, 0x4b4
ret 8
Function at 0x45e130
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x210]
push esi
push 1
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x46fa00
push esi
call ebx
push esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.stera.exe
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45e19c
mov dword [edi + 4], 0
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x208
ret
mov ecx, edi
call fcn.0045deb0
test eax, eax
jne 0x45e1ae
mov dword [edi + 4], 1
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x45eca0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x468f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x2c]
push 0x40227a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], esi
call fcn.00464350
add esp, 0xc
mov edi, dword [esp + 0x30]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x30]
push edx
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
mov byte [esp + 0x3c], 1
call ebp
cmp eax, ebx
je 0x45ed41
push eax
call fcn.004021b8
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
mov byte [esp + 0x24], bl
call dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x45ed2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
cmp edi, ebx
jne 0x45ed49
xor eax, eax
jmp 0x45ed5b
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x45ed50
sub eax, edx
mov esi, dword [esp + 0x34]
push eax
push edi
mov ecx, esi
call fcn.00403cc5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
add esi, 8
push eax
mov ecx, esi
call fcn.0043fa00
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push ecx
call ebp
cmp eax, ebx
jne 0x45ed04
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x24], bl
call dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x45edba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x462d40
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x469216
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push ebp
push esi
mov esi, dword [esp + 0x168]
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x462d85
mov ecx, dword [esi + 4]
push ecx
push eax
call fcn.0040e9c0
mov edx, dword [esi]
push edx
call fcn.00448193
add esp, 0xc
mov dword [esi], ebx
mov edi, dword [esp + 0x170]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [edi]
cmp eax, ebx
je 0x462daf
mov ecx, dword [edi + 4]
push ecx
push eax
call fcn.0040e9c0
mov edx, dword [edi]
push edx
call fcn.00448193
add esp, 0xc
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [0x47fe44]
mov edx, dword [eax + 0xc]
mov ecx, 0x47fe44
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x168]
push 0x46d4f4
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x168], ebx
call fcn.0040e69a
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x462e30
mov dword [esp + 0x160], eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x462e21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x462f3c
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 1
call fcn.0040e69a
lea eax, [esp + 0x44]
push 0x46db90
push eax
call fcn.0044d0aa
add esp, 8
test eax, eax
jne 0x462e84
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x462ed4
lea ecx, [esp + 0x44]
push 0x46fba0
push ecx
call fcn.0044d0aa
add esp, 8
test eax, eax
jne 0x462eb7
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x160], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x462ee8
test byte [esp + 0x18], 0x10
mov esi, dword [esp + 0x10]
push esi
mov ecx, edi
jne 0x462ecc
mov ecx, dword [esp + 0x170]
call fcn.004130e0
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x160], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x462e30
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x160], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x462f3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret 0xc
Function at 0x462f60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x469240
push eax
mov dword fs:[0], esp
sub esp, 0x14
push edi
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x462fa1
shr eax, 4
and eax, 1
pop edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.00409a7c
mov eax, dword [0x47fe44]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x47fe44
mov dword [esp + 0x2c], ebx
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x1c]
push eax
push 0x46b5e8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 1
mov dword [esp + 0x28], ebx
call fcn.00413410
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x2c], 2
je 0x4630c1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esi - 0xc]
test ebp, ebp
je 0x46304c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebp + 1]
sub eax, edi
or eax, ecx
jge 0x46302c
push edi
lea ecx, [esp + 0x18]
call fcn.0040207d
mov esi, dword [esp + 0x14]
test edi, edi
mov byte [esi + ebp], 0x5c
jl 0x4630d8
cmp edi, dword [esi - 8]
jg 0x4630d8
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040eb58
mov esi, dword [esp + 0x14]
push 0
push esi
call ebx
lea edx, [esp + 0x1c]
push edx
push 0x46b5e8
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
call fcn.00413410
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.0040e6c3
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4630af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jne 0x463003
mov edi, dword [esp + 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4630e2
test al, 0x10
je 0x4630e2
mov edi, 1
jmp 0x4630e4
push 0x80070057
call fcn.0040109c
xor edi, edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46312a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463152
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x463440
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, 1
test byte [0x480ae8], al
jne 0x463466
or dword [0x480ae8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x19
and eax, 0x40
mov dword [0x480ae4], eax
jmp 0x46346b
mov eax, dword [0x480ae4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
not eax
and esi, eax
mov eax, dword [esp + 0x14]
push esi
push edi
push ebx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4634c1
call fcn.004021a3
cmp eax, 0x80090019
jne 0x4634c3
mov ecx, dword [esp + 0x14]
or esi, 8
push esi
push edi
push ebx
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4634c1
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.004021a3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x463530
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004493b0
push ebx
mov ebx, dword [esp + 0x2018]
xor eax, eax
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], eax
push esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [ecx]
lea eax, [esp + 0xc]
push eax
xor ebp, ebp
push ebp
push ebp
push 0x8003
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x463598
call fcn.004021a3
mov esi, eax
cmp esi, ebp
jge 0x463598
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x46358a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret 8
mov ecx, dword [esp + 0x201c]
push edi
push ebp
push 0x8000000
push 3
push ebp
push 1
push SysReAllocStringLen
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4635e8
call fcn.004021a3
cmp eax, ebp
jge 0x4635ea
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4635d6
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
add esp, 0x200c
ret 8
mov edi, eax
mov dword [esp + 0x14], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x28]
push eax
push edi
call ebp
test eax, eax
jne 0x463615
call fcn.004021a3
test eax, eax
jl 0x463641
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x463641
mov edx, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4635f4
call fcn.004021a3
mov esi, eax
test esi, esi
jge 0x4635f4
jmp 0x46366d
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push 2
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x46366b
call fcn.004021a3
mov esi, eax
jmp 0x46366d
xor esi, esi
test edi, edi
je 0x463678
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x463687
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x200c
ret 8
Function at 0x4636e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4692b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x68]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x4637af
call fcn.004021a3
cmp eax, ebx
jl 0x46378e
push fcn.0040a97c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00464350
push 0x3e
lea eax, [esp + 0x2a]
push ebx
push eax
mov word [esp + 0x30], bx
call fcn.00449160
mov eax, dword [esp + 0x20]
add esp, 0x18
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x4637b8
call fcn.004021a3
cmp eax, ebx
je 0x4637bf
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], bl
call dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x46379d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov dword [esp + 8], eax
jmp 0x463730
cmp dword [esp + 0xc], 0x40
jne 0x463782
cmp word [esp + 0x18], 0x5a4d
jne 0x4637f5
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], bl
call dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x4637e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov eax, dword [esp + 0x18]
cmp eax, 0x47544c53
je 0x46380b
cmp eax, 0x5446534d
mov byte [esp + 7], bl
jne 0x463810
mov byte [esp + 7], 1
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x60], bl
call dword [esp + 0x14]
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x46382b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x58]
mov al, byte [esp + 7]
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret