joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0970
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x4d0980
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x4d09c2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret
Function at 0x4d0c40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657d01
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x420]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.005e0dd0
mov eax, dword [esi + 0x3c]
add esp, 0xc
mov esi, dword [edi + 0x3fc]
mov dword [ebp - 0x878], eax
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x87c], 0x14
push eax
push 0
push 0x113e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp - 0x858]
push dword [ecx + eax*8]
call dword [sym.imp.SHELL32.dll_ILClone]
mov esi, eax
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4d0cff
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x840]
call fcn.0049f410
mov dword [ebp - 4], 0
jmp 0x4d0e03
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x208
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea edx, [ebp - 0x218]
push 1
push ecx
mov ecx, esi
call fcn.004dffd0
add esp, 8
test eax, eax
js 0x4d0e2f
push 0x208
lea eax, [ebp - 0x628]
mov dword [ebp - 0x834], 0
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
push 1
push ecx
mov ecx, dword [ebp - 0x834]
lea edx, [ebp - 0x628]
call fcn.004dffd0
add esp, 8
push dword [ebp - 0x834]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4d0dd1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x840]
call fcn.0049f410
mov dword [ebp - 4], 1
jmp 0x4d0e03
push ecx
lea edx, [ebp - 0x830]
lea ecx, [ebp - 0x218]
call fcn.004e01b0
add esp, 4
test eax, eax
js 0x4d0e2f
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x840]
call fcn.0049f410
mov dword [ebp - 4], 2
imul ecx, dword [0x6f3eec], 0x168
lea eax, [ebp - 0x840]
push 0
push eax
add ecx, 0x6f3f54
call fcn.00479190
push dword [ebp - 0x840]
call fcn.00545b61
add esp, 4
mov dword [ebx], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 8
Function at 0x4d24a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657e68
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4d25cd
cmp byte [ebx + 0x3d], 0
je 0x4d25cd
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4d24f4
xor al, al
jmp 0x4d25cf
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004c3530
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4d255e
sub eax, 1
je 0x4d2562
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x4d25b5
xor bl, bl
jmp 0x4d25b7
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4d2597
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005f05c3
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4d255a
cmp byte [ebx + 0x3d], 0
je 0x4d25b5
test esi, esi
jne 0x4d2520
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004c3a30
jmp 0x4d2519
mov bl, 1
cmp ecx, 0x10
jb 0x4d25c9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00414c80
mov al, bl
jmp 0x4d25cf
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4d3730
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657f3e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [eax + 0x3ec]
lea edx, [ebp - 0x10]
push 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [eax]
cmp word [edi], si
je 0x4d3788
nop
inc esi
cmp word [edi + esi*2], 0
jne 0x4d3780
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ebx, eax
lea eax, [esi*2 + 2]
push eax
push edi
push ebx
call fcn.005e0850
add esp, 0x10
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff4
cmp ecx, dword [0x6dc0e0]
je 0x4d37df
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4d37df
push ecx
call fcn.0049fdd0
add esp, 4
test esi, esi
je 0x4d3833
mov eax, dword [ebp - 0x14]
push dword [eax + 0x248]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4d3833
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
call fcn.00545b61
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d38f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657f71
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x54
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.005e0dd0
movups xmm0, xmmword [0x6b436c]
push 0x1e8
lea eax, [ebp - 0x1f8]
movups xmmword [ebp - 0x218], xmm0
push 0
movups xmm0, xmmword [0x6b437c]
push eax
movups xmmword [ebp - 0x208], xmm0
call fcn.005e0dd0
add esp, 0x18
mov dword [ebp - 0x288], 0x58
lea eax, [ebp - 0x218]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x27c], 0x6b25c8
push eax
mov dword [ebp - 0x270], 1
mov dword [ebp - 0x268], 0x208
mov dword [ebp - 0x254], 0x806
mov dword [ebp - 0x258], 0x6b438c
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4d3aa2
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4d3aa2
push 0
lea eax, [ebp - 0x224]
mov dword [ebp - 0x21c], 0xfeff
push eax
push 2
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x3ec]
lea edx, [ebp - 0x220]
push 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
push dword [eax]
call fcn.0049f410
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff4
cmp ecx, dword [0x6dc0e0]
je 0x4d3a6a
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4d3a6a
push ecx
call fcn.0049fdd0
add esp, 4
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x224]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00545b61
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4d6eb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x6dc0b8]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
push 0x58
lea eax, [esp + 0x1c]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
call fcn.005e0dd0
mov eax, dword [ebx + 0x248]
add esp, 0xc
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x34], eax
xor eax, eax
mov word [esp + 0x70], ax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x58
mov dword [esp + 0x3c], 0x208
mov dword [esp + 0x28], 0x6b10e0
mov dword [esp + 0x34], 1
mov dword [esp + 0x50], 0x1800
mov dword [esp + 0x4c], 0x6b110c
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x4d6fb3
push 0
push 0x80
push 3
push 0
push 1
push accept
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.005e74a6
add esp, 4
mov dword [esp + 0x10], 0
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push str.list_content
add ecx, 4
call fcn.00554534
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x40]
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4d7990
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6583bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor esi, esi
cmp word [ebp - 0x21c], si
je 0x4d7a0c
nop word [eax + eax]
inc esi
cmp word [ebp + esi*2 - 0x21c], 0
jne 0x4d7a00
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ebx, eax
mov dword [ebp - 0x228], esi
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x22c], ebx
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], esi
push eax
push ebx
call fcn.005e0850
add esp, 0x10
mov dword [ebp - 4], 0
xor edi, edi
nop word [eax + eax]
inc edi
cmp word [edi*2 + str.Thorzip], 0
jne 0x4d7a60
test edi, edi
je 0x4d7a98
lea ecx, [edi + esi]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x22c]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x22c]
lea eax, [edi*2 + 2]
push eax
lea eax, [ebx + esi*2]
push str.Thorzip
push eax
call fcn.005e0850
add esp, 0xc
add esi, edi
mov dword [ebp - 0x228], esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d7acc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.history.data
lea edx, [ebp - 0x22c]
mov byte [ebp - 0x21d], 1
lea ecx, [ebp - 0x238]
call fcn.0049f250
mov esi, dword [ebp - 0x238]
add esp, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d7b1a
push esi
push 0x14
push str.LightMode
push str.Record
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb al, al
and byte [ebp - 0x21d], al
push esi
call fcn.00545b61
push ebx
call fcn.00545b61
mov al, byte [ebp - 0x21d]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4d7b50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6583bb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x21d], cl
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1c
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor esi, esi
cmp word [ebp - 0x21c], si
je 0x4d7bcc
nop dword [eax]
inc esi
cmp word [ebp + esi*2 - 0x21c], 0
jne 0x4d7bc0
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ebx, eax
mov dword [ebp - 0x228], esi
lea ecx, [esi*2 + 2]
mov dword [ebp - 0x22c], ebx
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], esi
push eax
push ebx
call fcn.005e0850
add esp, 0x10
mov dword [ebp - 4], 0
xor edi, edi
nop word [eax + eax]
inc edi
cmp word [edi*2 + str.Thorzip], 0
jne 0x4d7c20
test edi, edi
je 0x4d7c58
lea ecx, [edi + esi]
mov eax, ecx
add ecx, 0x10
shr eax, 1
add eax, ecx
lea ecx, [ebp - 0x22c]
and eax, 0xfffffff0
dec eax
push eax
call fcn.0049f070
mov esi, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x22c]
lea eax, [edi*2 + 2]
push eax
lea eax, [ebx + esi*2]
push str.Thorzip
push eax
call fcn.005e0850
add esp, 0xc
add esi, edi
mov dword [ebp - 0x228], esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d7c8c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.history.data
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x238]
call fcn.0049f250
mov esi, dword [ebp - 0x238]
add esp, 4
cmp byte [ebp - 0x21d], 0
mov ecx, 0x6ad26c
mov eax, 0x6ae17c
cmove eax, ecx
push esi
push eax
push str.LightMode
push str.Record
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call fcn.00545b61
push ebx
call fcn.00545b61
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4dae80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6586e4
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push str.LAYOUT:savecompressmode_dlg
call fcn.0054e3cc
mov dword [ebp - 4], 0
lea esi, [edi + 0x3b0]
mov dword [edi], 0x6b5a60
mov dword [edi + 4], 0x6b5964
mov dword [edi + 8], 0x6b7ec8
mov dword [edi + 0xc], 0x6b5954
mov dword [edi + 0x23c], 0x6b5948
push 8
mov dword [ebp - 0x14], esi
mov dword [esi + 8], 0
call fcn.00545b74
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
add esp, 4
mov dword [esi + 0x10], 3
mov word [eax], cx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ecx
mov dword [edi + 0x3e8], ecx
mov dword [edi + 0x3ec], ecx
mov dword [edi + 0x3f0], ecx
push 0x4b9650
push fcn.004a99b0
push 2
push 0xc
lea eax, [edi + 0x3f8]
mov byte [ebp - 4], 2
push eax
call fcn.00545b8b
mov dword [edi + 0x444], 0
mov eax, edi
mov dword [edi + 0x448], 2
mov byte [edi + 0x440], 0
mov byte [edi + 0x44c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dc5e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x5c], 0
push 0xffffffffffffffff
mov esi, dword [edi + 0x43c]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x104]
mov ecx, dword [esi + 0x264]
call fcn.0056e330
mov eax, dword [edi + 0x43c]
mov eax, dword [eax + 0x264]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4dc7e3
mov ecx, edi
call fcn.004dd790
lea eax, [eax + eax*2]
cmp byte [eax*8 + 0x6deca2], 0
je 0x4dc7e3
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [edi + 0x444]
or ecx, 0xffffffff
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x58], esi
test eax, eax
jne 0x4dc672
mov ecx, dword [edi + 0x410]
jmp 0x4dc67d
cmp eax, 1
jne 0x4dc684
mov ecx, dword [edi + 0x414]
call fcn.005550ce
mov ecx, eax
mov eax, dword [edi + 0x3e4]
push ebx
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov ecx, edi
add eax, 0xc
push eax
call fcn.004ddb20
test eax, eax
js 0x4dc6e2
mov ecx, dword [edi + 0x3d0]
mov esi, dword [ecx + eax*4]
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
call fcn.004dd6e0
mov ecx, dword [esi + 0x20]
mov edx, dword [eax]
call fcn.0049ea70
test al, al
je 0x4dc6cb
cmp dword [esi + 0x10], 0xffffffff
je 0x4dc6cb
mov bl, 1
jmp 0x4dc6cd
xor bl, bl
push dword [ebp - 0x68]
call fcn.00545b61
add esp, 4
test bl, bl
je 0x4dc6e2
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov ecx, dword [edi + 0x42c]
mov ebx, 1
mov eax, dword [ecx]
call dword [eax + 0x100]
test eax, eax
jg 0x4dc6fe
or eax, 0xffffffff
jmp 0x4dc71e
mov ecx, dword [edi + 0x42c]
mov eax, dword [ecx]
call dword [eax + 0xfc]
mov ecx, dword [edi + 0x42c]
push eax
mov ecx, dword [ecx + 0x264]
call fcn.0056e78d
sub eax, 1
je 0x4dc734
sub eax, 1
je 0x4dc72d
sub eax, 2
jne 0x4dc739
mov ebx, 0x20
jmp 0x4dc739
mov ebx, 2
cmp dword [edi + 0x444], 0
mov eax, 0x80
cmove ebx, eax
lea esi, [eax - 0x7f]
mov eax, dword [ebp - 0x78]
add eax, eax
cmp eax, esi
jb 0x4dc790
cmp esi, ebx
ja 0x4dc790
lea edx, [ebp - 0x54]
mov ecx, esi
call fcn.0049df50
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
push 0
push 0xffffffffffffffff
push eax
call fcn.0056e233
mov ecx, dword [edi + 0x43c]
push esi
push eax
mov ecx, dword [ecx + 0x264]
call fcn.0056fd60
mov ecx, dword [ebp - 0x78]
inc esi
lea eax, [ecx + ecx]
cmp esi, eax
jbe 0x4dc754
push dword [ebp - 0x58]
push dword [edi + 0x43c]
call fcn.004b5380
cmp dword [edi + 0x3fc], 0
pop ebx
je 0x4dc7e3
mov eax, dword [edi + 0x444]
mov ecx, dword [edi + 0x448]
lea eax, [eax + eax*2]
mov eax, dword [edi + eax*4 + 0x3f8]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax]
push dword [eax + 0x18]
movups xmmword [ebp - 0x84], xmm0
movq xmm0, qword [eax + 0x10]
push dword [edi + 0x43c]
movq qword [ebp - 0x74], xmm0
call fcn.004ddc10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00545b50
mov esp, ebp
pop ebp
ret
Function at 0x4df640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x19
push 0x6a7274
lea ecx, [ebp - 0x1c]
call fcn.00509a30
cmp dword [eax + 0x14], 8
jb 0x4df667
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push 0x6add70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x4df690
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00416870
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret

Function at 0x4e0070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push ecx
push 0
mov esi, edx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x4e00b1
push dword [ebp + 0xc]
mov edx, esi
push ecx
mov ecx, dword [ebp - 4]
call fcn.004dffd0
add esp, 8
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e0c80
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4e0cee
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e0cee
push eax
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret

Function at 0x4e25b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x6dc0b8]
xor eax, esp
mov dword [esp + 0x1c], eax
push 0x19
push 0x6a72bc
lea ecx, [esp + 0xc]
call fcn.00509a30
cmp dword [eax + 0x14], 8
jb 0x4e25dc
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push 0x6add70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x4e2608
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.00416870
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00545b50
mov esp, ebp
pop ebp
ret