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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4f8889
dec al
je 0x4f88c4
dec al
je 0x4f8909
dec al
je 0x4f8972
jmp 0x4f89fc
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4f89fc
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4f8899
jmp 0x4f89fc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f89fc
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4f88d4
jmp 0x4f89fc
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f89fc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4f8938
xor ebp, ebp
jmp 0x4f8948
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4f8951
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4f8919
jmp 0x4f89fc
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4f89fc
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4f89cb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004f4318
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4f8986
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x505050
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5051f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [esi + 5], eax
mov byte [esi], 0
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.00504f78
test al, al
je 0x5050bc
mov eax, dword [0x62f608]
cmp byte [eax], 0
je 0x5050ad
mov ecx, 0x407b
mov edx, 0x50520c
mov eax, 0x505290
call fcn.00405944
push 0x5052d4
call sub.kernel32.dll_OutputDebugStringW
jmp 0x5051d7
mov eax, ebx
call fcn.00504bf0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x5051d7
mov byte [ebp - 0xd], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebp - 0xc], edi
movzx eax, byte [esi]
cmp al, byte [ebp - 0xd]
jne 0x50518c
push 0x5052fc
call sub.kernel32.dll_OutputDebugStringW
movzx eax, byte [esi]
mov byte [ebp - 0xd], al
mov byte [esi], 0
xor edi, edi
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0xe9
jne 0x505136
mov edi, ebx
add edi, 5
add edi, dword [esi + 1]
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_ReadProcessMemory
lea eax, [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0xd]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x34]
mov ecx, 2
mov eax, 0x505338
call fcn.004723c4
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x505370
call fcn.00406e84
mov eax, dword [ebp - 0x18]
mov ecx, 0x40a2
mov edx, 0x50520c
call fcn.00405944
jmp 0x5051d7
mov dword [esi + 5], ebx
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test esi, esi
je 0x5051d7
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5051f9
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004069a8
ret
Function at 0x5053ac
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
cmp byte [esi], 0
je 0x505458
test ebx, ebx
je 0x505458
xor ecx, ecx
mov edx, 6
mov eax, ebx
call fcn.005de37d
test al, al
je 0x505403
mov eax, dword [0x62f608]
cmp byte [eax], 0
je 0x5053f7
mov ecx, 0x40c1
mov edx, 0x50546c
mov eax, 0x5054f0
call fcn.00405944
push 0x505534
call sub.kernel32.dll_OutputDebugStringW
jmp 0x505458
mov eax, ebx
call fcn.00504bf0
mov ebx, eax
test ebx, ebx
je 0x505458
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
push esp
push 5
push esi
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WriteProcessMemory
mov edi, eax
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test edi, edi
je 0x505455
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
mov byte [esi], 0
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x50ad94
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ae03
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x50ae1c
call fcn.004723c4
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ae0a
lea eax, [ebp - 4]
call fcn.004069a0
ret

Function at 0x50af78
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50afd5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x50afec
call fcn.004723c4
mov eax, dword [ebp - 4]
call fcn.00406a3c
push eax
call sub.kernel32.dll_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50afdc
lea eax, [ebp - 4]
call fcn.004069a0
ret
Function at 0x50b09c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x50b311
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x636470], 0
je 0x50b2f6
mov ebx, dword [0x636470]
call fcn.004048f4
mov eax, ebx
call fcn.00404c14
or edx, 0xffffffff
call fcn.004049a0
xor eax, eax
push ebp
push 0x50b2ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x636470]
mov edx, dword [eax + 0x30]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x34]
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x50b206
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x636470]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x636470]
mov edx, dword [0x4efdf4]
mov dword [eax + 0x34], edx
mov dword [eax + 0x30], 0x5009dc
mov eax, dword [0x636470]
call fcn.00509d7c
mov eax, dword [0x636470]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
mov eax, dword [0x636470]
mov ebx, dword [eax + 0x38]
cmp byte [0x6364b8], 0
je 0x50b1a6
test ebx, ebx
je 0x50b1a6
xor edi, edi
test ebx, ebx
je 0x50b1a6
cmp dword [ebx + 4], 0xfffffffe
jne 0x50b19f
inc edi
push 0x50b32c
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.004707a4
push dword [ebp - 0x14]
push 0x50b36c
push dword [ebx]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406f68
mov eax, dword [ebp - 0x10]
call fcn.00406a3c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x50b164
mov eax, dword [0x636470]
mov ebx, dword [eax + 0x38]
test ebx, ebx
je 0x50b1dd
mov esi, dword [ebx + 0x10]
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], 0xfffffffe
mov dword [ebx + 8], 0xe6
mov edx, dword [ebx + 0xc]
mov ecx, ebx
mov eax, dword [0x636470]
call fcn.0050a038
mov ebx, esi
test ebx, ebx
jne 0x50b1b2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b20d
mov eax, dword [0x636470]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [0x636470]
mov edx, dword [ebp - 8]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x34], edx
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b318
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004069a8
ret
Function at 0x51284c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x512865
add esp, 0xfffffff0
call fcn.0040483c
mov dword [ebp - 4], ecx
mov byte [ebp - 9], dl
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406998
xor eax, eax
push ebp
push 0x5129e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x24], eax
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x20], 0
mov dword [ebx + 0x1c], 0xffffffff
lea eax, [ebx + 0x18]
xor edx, edx
call fcn.004069b0
mov byte [ebx + 0x22], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.00496698
lea eax, [ebx + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [ebx + 0x14], eax
call fcn.00404358
mov dl, 1
mov eax, dword [0x51176c]
call fcn.0048bc18
mov esi, eax
mov dword [ebx + 0x14], esi
lea eax, [ebx + 0xc]
sub eax, 4
mov dword [eax], esi
lea eax, [ebx + 0x10]
mov edx, dword [ebp - 4]
call fcn.004069b0
cmp dword [ebx + 0x10], 0
je 0x5129b8
mov edx, dword [ebx + 0x10]
mov eax, ebx
call fcn.00512558
mov eax, dword [ebx + 0x10]
call fcn.00470f58
test al, al
jne 0x5129ae
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x10]
call fcn.004714b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x512930
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x512930
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x512939
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x512945
mov eax, dword [ebp - 4]
call fcn.0051268c
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebx + 0x10]
call fcn.00406a3c
push eax
call sub.kernel32.dll_CreateFileW_1
mov esi, eax
cmp esi, 0xffffffff
je 0x5129ae
cmp dword [ebp + 8], 0
je 0x5129a8
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
call fcn.00408278
test eax, eax
jle 0x5129a8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00408278
push eax
mov eax, dword [ebp - 8]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebx + 0x24], 0
je 0x5129b8
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x34], ebx
mov dword [eax + 0x30], 0x5127b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5129f0
lea eax, [ebp - 8]
mov edx, dword [0x46e418]
call fcn.00408560
lea eax, [ebp - 4]
call fcn.004069a0
ret
Function at 0x514bbc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x514e6e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x676658], 0
je 0x514bf4
mov edx, dword [0x676658]
mov eax, esi
call fcn.00513c8c
cmp dword [0x676668], 0
je 0x514c38
mov eax, dword [0x676668]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x514c2e
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [0x676668]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00513c8c
dec ebx
cmp ebx, 0xffffffff
jne 0x514c0f
mov eax, dword [0x676668]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00479e88
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00471474
mov edx, dword [ebp - 0xc]
mov eax, 0x676678
call fcn.004069b0
cmp byte [ebp - 1], 0
je 0x514e53
cmp dword [0x61ff18], 0
je 0x514e53
mov eax, dword [0x62f3e0]
cmp byte [eax], 0
je 0x514ceb
push 0x514e88
mov eax, dword [0x676660]
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x18]
call fcn.004707a4
push dword [ebp - 0x18]
push 0x514ec4
mov eax, dword [0x676664]
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x1c]
call fcn.004707a4
push dword [ebp - 0x1c]
push 0x514ee0
push dword [0x676654]
push 0x514f00
push dword [0x676658]
push 0x514f1c
push dword [0x676678]
lea eax, [ebp - 0x14]
mov edx, 0xa
call fcn.00406f68
mov eax, dword [ebp - 0x14]
call fcn.00406a3c
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [0x61ff18]
call fcn.004967d4
mov eax, dword [0x61ff1c]
call fcn.004967d4
call fcn.0050b09c
mov ebx, dword [0x676660]
call fcn.004048f4
mov eax, ebx
call fcn.00404c14
or edx, 0xffffffff
call fcn.004049a0
xor edx, edx
push ebp
push 0x514d4e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x676660]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514d55
mov eax, dword [0x676660]
call fcn.00404b84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x514e75
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.004069a8
ret

Function at 0x53698c
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403a80
ret
Function at 0x53b57c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 8]
mov eax, ebx
xor edx, edx
call fcn.004069b0
push 0
push edi
lea eax, [ebp - 0x20a]
push eax
push esi
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406bb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x53b5c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406bb0
add esp, 0x200
pop ebx
ret

Function at 0x53b5f4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406bb0
add esp, 0x200
pop ebx
ret

Function at 0x53b620
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, edx
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406bb0
add esp, 0x200
pop ebx
ret

Function at 0x53b650
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.004069b0
mov dword [ebp - 4], 0x104
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x53b68d
mov eax, ebx
lea edx, [ebp - 0x20c]
call fcn.00406b5c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53b694
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
xor edx, edx
mov dword [ebp - 0x20c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53b710
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x53b6f7
push ebx
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406bb0
mov eax, dword [ebp - 0x20c]
mov ecx, 2
mov edx, 1
call fcn.0040715c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53b717
lea eax, [ebp - 0x20c]
call fcn.004069a0
ret
Function at 0x53c0b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53c21b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53c136
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x23
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 8
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53c161
xor eax, eax
push ebp
push 0x53c1a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x1a
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetSpecialFolderPathW
mov eax, dword [ebp - 4]
add eax, 4
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00406bb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53c1ce
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.004034b0
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.00471474
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.004069b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c222
lea eax, [ebp - 0x224]
mov edx, 4
call fcn.004069a8
ret

Function at 0x53c7c4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406bb0
add esp, 0x200
pop ebx
ret
Function at 0x53cf20
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53cf9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
mov edx, dword [ebp - 8]
inc edx
lea eax, [ebp - 4]
call fcn.004068fc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00406710
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x53cf7d
mov edx, dword [ebp - 8]
dec edx
lea eax, [ebp - 4]
call fcn.004068fc
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406c18
jmp 0x53cf86
mov eax, ebx
xor edx, edx
call fcn.004069b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53cfa3
lea eax, [ebp - 4]
call fcn.00406544
ret
Function at 0x53cfa8
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53d20b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406a04
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403a80
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403a80
push 0x53d218
push 0x53d240
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409db4
test eax, eax
je 0x53d032
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x53d03e
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x53d1eb
test bl, bl
je 0x53d06e
call fcn.0053d3b8
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x53d089
lea eax, [ebp - 4]
mov edx, 0x53d268
call fcn.00406a04
cmp dword [ebp - 0x11c], 5
jne 0x53d0ad
cmp dword [ebp - 0x118], 0
jne 0x53d0ad
lea eax, [ebp - 4]
mov edx, 0x53d28c
call fcn.00406a04
jmp 0x53d1eb
cmp dword [ebp - 0x11c], 5
jne 0x53d0d1
cmp dword [ebp - 0x118], 1
jne 0x53d0d1
lea eax, [ebp - 4]
mov edx, 0x53d2b4
call fcn.00406a04
jmp 0x53d1eb
cmp dword [ebp - 0x11c], 5
jne 0x53d117
cmp dword [ebp - 0x118], 2
jne 0x53d117
cmp byte [ebp - 6], 1
jne 0x53d105
cmp word [ebp - 0x144], 9
jne 0x53d105
lea eax, [ebp - 4]
mov edx, 0x53d2b4
call fcn.00406a04
jmp 0x53d1eb
lea eax, [ebp - 4]
mov edx, 0x53d2d8
call fcn.00406a04
jmp 0x53d1eb
cmp dword [ebp - 0x11c], 6
jne 0x53d13b
cmp dword [ebp - 0x118], 0
jne 0x53d13b
lea eax, [ebp - 4]
mov edx, 0x53d30c
call fcn.00406a04
jmp 0x53d1eb
cmp dword [ebp - 0x11c], 6
jne 0x53d15f
cmp dword [ebp - 0x118], 1
jne 0x53d15f
lea eax, [ebp - 4]
mov edx, 0x53d334
call fcn.00406a04
jmp 0x53d1eb
cmp dword [ebp - 0x11c], 6
jne 0x53d185
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x53d185
lea eax, [ebp - 4]
mov edx, 0x53d354
call fcn.00406a04
jmp 0x53d1eb
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x53d1aa
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x53d1aa
lea eax, [ebp - 4]
mov edx, 0x53d374
call fcn.00406a04
jmp 0x53d1eb
cmp eax, 0xa
jne 0x53d1d9
cmp dword [ebp - 0x114], 0x55f0
jae 0x53d1ca
lea eax, [ebp - 4]
mov edx, 0x53d374
call fcn.00406a04
jmp 0x53d1eb
lea eax, [ebp - 4]
mov edx, 0x53d398
call fcn.00406a04
jmp 0x53d1eb
cmp eax, 0xb
jb 0x53d1eb
lea eax, [ebp - 4]
mov edx, 0x53d398
call fcn.00406a04
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004069b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d212
lea eax, [ebp - 4]
call fcn.004069a0
ret

Function at 0x53d4e8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00406bb0
add esp, 0x200
pop ebx
ret