joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430df8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040b394
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004119d8
mov edi, eax
cmp edi, 0x104
jbe 0x430da3
mov eax, edi
add eax, eax
call fcn.00407138
mov esi, eax
jmp 0x430da5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004119d8
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x430dde
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x430dc8
mov eax, esp
cmp esi, eax
je 0x430deb
mov eax, esi
call fcn.00407154
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x430e24
cmp bl, 0
je 0x430e20
cmp bl, 0x41
jl 0x430e1b
cmp bl, 0x5a
jg 0x430e1b
or bl, 0x20
xor al, bl
inc esi
jmp 0x430dff
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x430d64

Function at 0x43174c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040c004
add esp, 0x800
pop ebx
ret

Function at 0x485d78
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x485dbb
cmp byte [ebx + 0x11], 0
jne 0x485dbb
cmp byte [ebx + 0x24], 0
jne 0x485dbb
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x485dd2
mov ecx, dword [0x862e64]
mov dl, 1
mov eax, dword [0x452fe4]
call fcn.0042ea7c
call fcn.0040a500
pop ebx
ret
mov ecx, dword [0x862e64]
mov dl, 1
mov eax, dword [0x452fe4]
call fcn.0042ea7c
call fcn.0040a500
pop ebx
ret

Function at 0x48663c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x48668a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00485c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4866a3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4866ac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00485c24
dec esi
jne 0x4866ce
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x489548
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x86a4b4
cmp dword [edi], 0
jne 0x4895c4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x86a4b0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x856e9c
mov ecx, 2
call fcn.004072fc
mov edx, 0x489520
lea eax, [esi + 5]
call fcn.00489540
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00489540
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x489599
mov dword [0x86a4b0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x504280
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x504288
mov eax, edx
pop esi
pop ebx
ret

Function at 0x529820
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5299df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040b2ac
mov eax, dword [ebp - 4]
call fcn.0052916c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x529872
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040c3cc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0052a474
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x529953
xor eax, eax
push ebp
push 0x52994c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0052940c
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00529a14
test al, al
je 0x529928
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040b00c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x529928
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040bf4c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0052936c
test al, al
je 0x529922
mov eax, dword [ebp - 8]
call fcn.0040bf4c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040bfb0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00529820
dec ebx
cmp ebx, 0xffffffff
jne 0x5298d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529953
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0052940c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
cmp byte [0x86a964], 0
je 0x529993
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040bf4c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.005293f8
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0052936c
mov ebx, eax
jmp 0x5299ba
mov eax, dword [ebp - 4]
call fcn.0040bf4c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.005293f8
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0052936c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5299e6
lea eax, [ebp - 0x3c]
call fcn.0040ae84
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040aee4
pop eax
jmp eax
Function at 0x52a350
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00529184
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040bf4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0052936c
test al, al
jne 0x52a3b8
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x862cd4]
mov dl, 1
mov eax, dword [0x527f50]
call fcn.0042eb50
call fcn.0040a500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x52a3c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040bf4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.0052936c
test al, al
jne 0x52a425
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x863234]
mov dl, 1
mov eax, dword [0x527f50]
call fcn.0042eb50
call fcn.0040a500
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.005291b4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52aa3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x52ab68
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0052940c
xor eax, eax
push ebp
push 0x52ab41
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00529a14
test al, al
je 0x52ab23
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0052a914
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040b00c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x52ab23
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bf4c
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0052936c
test al, al
je 0x52ab1f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bf4c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040bfb0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0052a914
pop ecx
inc edi
dec ebx
jne 0x52aac7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ab48
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0052940c
pop eax
jmp eax
Function at 0x52ab78
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x52add0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0052940c
xor eax, eax
push ebp
push 0x52ada4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00529a14
test al, al
je 0x52ad86
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040b00c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x52ad86
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bf4c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0052936c
test al, al
je 0x52ad7a
mov eax, dword [ebp - 4]
call fcn.0040bf4c
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0040bfb0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0052a474
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x52ad7a
xor eax, eax
push ebp
push 0x52ad73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0052940c
xor eax, eax
push ebp
push 0x52ad53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040bf4c
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0040bfb0
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00529410
mov eax, dword [ebp - 4]
call fcn.0040bf4c
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0040bfb0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0052a474
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x52ad2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0052aa3c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0052ab78
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ad35
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x52ac03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52adab
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0052940c
pop eax
jmp eax
Function at 0x52f7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52f8ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, esi
mov ecx, 0
call fcn.0040bacc
mov edx, esi
mov eax, ebx
call fcn.00529e14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x52f8c5
push 0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
sar ecx, 0
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040b060
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040b924
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, eax
mov eax, ebx
call fcn.0052936c
test al, al
jne 0x52f874
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x863234]
mov dl, 1
mov eax, dword [0x527f50]
call fcn.0042eb50
call fcn.0040a500
cmp dword [ebp - 0x10], 1
je 0x52f880
cmp dword [ebp - 0x10], 2
jne 0x52f89a
mov eax, dword [ebp - 4]
call fcn.0040b924
call fcn.0040b394
lea edx, [ebp - 4]
xor ecx, ecx
xchg edx, eax
call fcn.0040ba54
jmp 0x52f8b9
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x862b0c]
mov dl, 1
mov eax, dword [0x527f50]
call fcn.0042eb50
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00411604
jmp 0x52f8cc
mov eax, edi
call fcn.0040ae84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f8f3
lea eax, [ebp - 8]
call fcn.0040aea8
lea eax, [ebp - 4]
call fcn.0040aea8
pop eax
jmp eax

Function at 0x52f8fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x52f9ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, edi
mov ecx, 0
call fcn.0040bacc
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00411444
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x52f946
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
push eax
mov eax, dword [ebp - 4]
call fcn.0040b924
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040b924
push eax
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov edx, eax
mov eax, esi
call fcn.0052936c
test al, al
jne 0x52f99a
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x862cd4]
mov dl, 1
mov eax, dword [0x527f50]
call fcn.0042eb50
call fcn.0040a500
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f9c1
lea eax, [ebp - 8]
call fcn.0040aea8
lea eax, [ebp - 4]
call fcn.0040aea8
pop eax
jmp eax
Function at 0x52fb50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov byte [ebp - 2], 0
fld qword [ebp + 8]
call fcn.00407d2c
mov esi, eax
movzx eax, si
cmp eax, dword [ebx + 0xa0]
setne al
and al, byte [ebp - 1]
jne 0x52fb8c
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0xa4]
cmp eax, 0x927c0
jbe 0x52fbf1
xor edx, edx
xor eax, eax
cmp si, word [ebx + eax*2 + 0x1d]
jne 0x52fb9b
mov dl, 1
jmp 0x52fba1
inc eax
cmp eax, 0x40
jne 0x52fb90
test dl, dl
jne 0x52fbf1
mov eax, ebx
call fcn.0052fcb4
xor eax, eax
cmp si, word [ebx + eax*2 + 0x1d]
je 0x52fbf1
inc eax
cmp eax, 0x40
jne 0x52fbae
movzx eax, si
mov dword [ebx + 0xa0], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0xa4], eax
xor eax, eax
cmp word [ebx + eax*2 + 0x1d], 0
jne 0x52fbe4
mov word [ebx + eax*2 + 0x1d], si
mov byte [ebp - 2], 1
jmp 0x52fbea
inc eax
cmp eax, 0x40
jne 0x52fbd1
mov eax, ebx
call fcn.0052fe10
movzx eax, byte [ebp - 2]
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x5323d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x532555
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x10e
call fcn.0040c0dc
xor edx, edx
push ebp
push 0x53250e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040bf4c
push eax
push 0
push 0
push 0x8023
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, 0x80000000
je 0x53243b
call fcn.00430fb0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040bf4c
call fcn.0040b3a8
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.0040c0dc
mov eax, dword [ebp - 4]
push dword [eax]
push 0x532570
push 0x5325a8
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.0040c23c
test bl, bl
je 0x532504
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dl, 1
call fcn.004285b8
test al, al
jne 0x532504
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00428660
test al, al
jne 0x53249a
call fcn.00430fb0
xor eax, eax
push ebp
push 0x5324fa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x5325bc
call fcn.0052e2dc
test eax, eax
jne 0x5324c3
call fcn.0042e914
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 8]
push eax
push 0
push 0
push 4
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040bf4c
push eax
call fcn.0052e364
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x532504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x532520
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x53253d
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00407520
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00428a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53255c
lea eax, [ebp - 0xc]
call fcn.0040ae84
pop eax
jmp eax
Function at 0x54365c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x543662
ret

Function at 0x54a7c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, esi
call fcn.0054a654
lea edx, [ebp - 0x22]
mov ecx, 0x16
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0x22], 0x9ac6cdd7
jne 0x54a806
lea eax, [ebp - 0x22]
call fcn.00547338
cmp ax, word [ebp - 0xe]
je 0x54a80b
call fcn.005462d0
sub dword [ebp - 8], 0x16
mov eax, dword [ebp - 8]
call fcn.00407138
mov dword [ebp - 0xc], eax
mov ebx, dword [esi + 0x30]
xor eax, eax
push ebp
push 0x54a935
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [esi + 0x30]
movzx edx, word [ebp - 0x14]
mov word [eax + 0x18], dx
cmp word [ebp - 0x14], 0
jne 0x54a851
mov word [ebp - 0x14], 0x60
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x18]
movsx edx, word [ebp - 0x1c]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0xc], eax
movzx eax, word [ebp - 0x14]
push eax
push 0x9ec
movsx eax, word [ebp - 0x16]
movsx edx, word [ebp - 0x1a]
sub eax, edx
push eax
call sub.kernel32.dll_MulDiv
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x34], 8
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x54a8c2
call fcn.005462d0
lea eax, [ebp - 0xa0]
push eax
push 0x6c
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
push eax
call sub.gdi32.dll_DeleteEnhMetaFile
lea eax, [ebp - 0x34]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_SetWinMetaFileBits
mov edi, eax
mov dword [ebx + 8], edi
test edi, edi
jne 0x54a916
call fcn.005462d0
mov byte [esi + 0x34], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54a93c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00407154
pop eax
jmp eax