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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov dl, 1
mov eax, dword [0x429744]
call fcn.0042fd60
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x49feb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x54]
cmp dword [eax + 8], 0
jle 0x49fe96
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0043118c
mov eax, dword [ebp - 8]
call fcn.00430330
mov eax, dword [eax + 0x14]
mov edx, esi
call fcn.0042aee0
cmp byte [ebp + 8], 0
je 0x49fd7e
xor edx, edx
mov eax, ebx
call fcn.0049ec6c
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.0049ec6c
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, ebx
call fcn.0049eb9c
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x49fdba
xor edx, edx
mov eax, ebx
call fcn.0049ec6c
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
mov eax, ebx
call fcn.0049eb9c
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.0049ec6c
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041da04
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
call fcn.00430330
pop edx
call fcn.0042b2cc
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.0049eb9c
dec eax
test eax, eax
jl 0x49fe6e
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0049eb40
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, esi
mov eax, ebx
call fcn.0049ec98
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x20]
imul esi
xor edx, edx
mov dl, byte [ebp + 8]
imul edx
push eax
mov edx, esi
mov eax, ebx
call fcn.0049ec98
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul esi
mov dl, byte [ebp + 8]
xor dl, 1
and edx, 0x7f
imul edx
xor ecx, ecx
pop edx
call fcn.0041d9dc
mov eax, dword [ebp - 8]
call fcn.00430330
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
inc esi
dec dword [ebp - 0x10]
jne 0x49fe04
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0049eb40
cmp byte [ebp + 0xc], 0
je 0x49fe96
movzx eax, word [ebx + 0x58]
mov edx, 0x10
call fcn.0043255c
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0049e330
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49febe
mov eax, dword [ebp - 8]
call fcn.00404638
ret
Function at 0x4afd68
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4afeea
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.004b015c
mov eax, ebx
call fcn.0042aa0c
dec al
je 0x4afdac
dec al
je 0x4afdb2
jmp 0x4afdb8
mov byte [ebp - 0x77], 2
jmp 0x4afdbc
mov byte [ebp - 0x77], 1
jmp 0x4afdbc
mov byte [ebp - 0x77], 0
mov eax, dword [ebp - 0x8c]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [ebp - 0x8c], eax
mov eax, ebx
call fcn.0042a998
shl eax, 2
lea eax, [eax + eax*4]
mov dword [ebp - 0x84], eax
mov edi, dword [ebx + 0x18]
cmp edi, 0xff000008
je 0x4afe09
cmp edi, 0x20000000
jne 0x4afe15
mov dword [ebp - 0x88], 0x40000000
jmp 0x4afe1f
mov eax, edi
call fcn.0042a254
mov dword [ebp - 0x7c], eax
mov eax, ebx
call fcn.0042a9d4
test al, 1
je 0x4afe31
or dword [ebp - 0x88], 1
mov eax, ebx
call fcn.0042a9d4
test al, 2
je 0x4afe43
or dword [ebp - 0x88], 2
mov eax, ebx
call fcn.0042a9d4
test al, 4
je 0x4afe55
or dword [ebp - 0x88], 4
mov eax, ebx
call fcn.0042a9d4
test al, 8
je 0x4afe67
or dword [ebp - 0x88], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.0042a924
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x76]
mov ecx, 0x20
call fcn.0040cf74
or dword [ebp - 0x8c], 0x8000000
mov eax, ebx
call fcn.0042aa3c
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.0042a728
push eax
call sub.gdi32.dll_GetObjectA
test eax, eax
je 0x4afec4
or dword [ebp - 0x8c], 0x400000
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x56], ax
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.004b0188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4afef1
lea eax, [ebp - 0x94]
call fcn.004054a8
ret
Function at 0x4b0e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, 0x4f615c
xor eax, eax
push ebp
push 0x4b1016
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x51c104], 1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b0ff9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b1024
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
jbe 0x4b0eeb
cmp dword [ebx], 0x20
jae 0x4b0eeb
xor eax, eax
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x4b0f17
push 0x4b1034
call sub.kernel32.dll_LoadLibraryA
mov dword [ebx], eax
cmp dword [ebx], 0
jbe 0x4b0fe2
cmp dword [ebx], 0x20
jae 0x4b0fe2
xor eax, eax
mov dword [ebx], eax
jmp 0x4b0fe2
mov byte [0x51c104], 2
lea eax, [ebp - 8]
mov edx, 0x4b104c
call fcn.00405540
lea eax, [ebp - 8]
call fcn.004059c8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405978
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4b0fe2
mov eax, ebx
call fcn.00402e98
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b0fdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405978
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4b0fc5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b105c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4b0fc5
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
and eax, 0xffff
mov ecx, 0xa
xor edx, edx
div ecx
mov byte [0x51c104], al
cmp byte [0x51c104], 0
jne 0x4b0fc5
mov byte [0x51c104], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0fe2
mov eax, dword [ebp - 0x10]
call fcn.00402ec8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1000
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4b3d08
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4b3d10
push ebx
push esi
push edi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4b3ef2
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 1]
call fcn.00403440
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0x41
jb 0x4b3ec2
cmp byte [ebp - 1], 0x5a
ja 0x4b3ec2
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.00403a00
mov edx, 0x4b3f00
lea eax, [ebp - 0x18]
mov cl, 2
call fcn.004039d0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.0040571c
mov eax, dword [ebp - 0xc]
call fcn.00405978
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4b3ec2
lea eax, [ebp - 0x1c]
call fcn.004dad7c
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 8]
mov edx, 0x4b3f0c
call fcn.0040cc4c
mov eax, dword [ebp - 8]
call fcn.0040ca7c
test al, al
jne 0x4b3d92
push 0x4b3f1c
push 0x4b3f24
mov ecx, dword [0x4f8668]
mov dl, 1
mov eax, dword [0x41d0e8]
call fcn.00421624
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b3e04
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00421420
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3e0b
mov eax, dword [ebp - 0x10]
call fcn.00404638
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3ef9
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004054cc
lea eax, [ebp - 0x1c]
call fcn.004054a8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004054cc
ret
Function at 0x4b5cf8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x230], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x242], 0
jne 0x4b5d45
mov eax, dword [ebp - 4]
cmp byte [eax + 0x232], 1
je 0x4b5d45
mov eax, dword [ebp - 4]
cmp byte [eax + 0x232], 2
jne 0x4b5eb7
mov eax, dword [ebp - 4]
call fcn.004b5784
test al, al
je 0x4b5eb7
mov eax, dword [ebp - 4]
call fcn.0044e190
push eax
call sub.user32.dll_HideCaret
xor eax, eax
push ebp
push 0x4b5eb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0044e190
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4b5e9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b5e74
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004473b8
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00447374
inc eax
push eax
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b5e56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov ebx, eax
push 0
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0044c194
mov eax, dword [ebp - 4]
cmp byte [eax + 0x241], 0
je 0x4b5dfa
mov eax, dword [ebp - 4]
call fcn.004b5b1c
push 0xcc0020
push 1
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004473b8
push eax
mov eax, dword [ebp - 4]
call fcn.00447374
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x20c]
mov esi, dword [eax*4 + 0x4f6160]
push esi
push esi
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_BitBlt
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5e5d
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0x230], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3188
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 0x222], 0
je 0x4d31af
mov ecx, edi
mov dl, 1
mov eax, dword [0x4d1f64]
call fcn.004d1fc8
mov dword [edi + 0x294], eax
jmp 0x4d32b8
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
cmp byte [edi + 0x22b], 0
je 0x4d31f0
mov al, byte [edi + 0x22a]
xor edx, edx
mov dl, al
cmp dx, word [edi + 0x226]
jbe 0x4d31e5
mov edx, eax
sub dl, byte [edi + 0x226]
mov eax, edi
call fcn.004d2738
jmp 0x4d3226
xor edx, edx
mov eax, edi
call fcn.004d2738
jmp 0x4d3226
movzx edx, word [edi + 0x226]
mov ecx, 0x64
sub ecx, edx
mov al, byte [edi + 0x22a]
xor edx, edx
mov dl, al
cmp ecx, edx
jle 0x4d321d
mov edx, eax
add dl, byte [edi + 0x226]
mov eax, edi
call fcn.004d2738
jmp 0x4d3226
mov dl, 0x64
mov eax, edi
call fcn.004d2738
cmp byte [edi + 0x22b], 0
je 0x4d3238
cmp byte [edi + 0x22a], 0
je 0x4d324a
cmp byte [edi + 0x22b], 0
jne 0x4d3255
cmp byte [edi + 0x22a], 0x64
jne 0x4d3255
mov bl, byte [edi + 0x224]
xor bl, 1
jmp 0x4d3285
mov eax, dword [0x4f7348]
mov eax, dword [eax]
call fcn.00467838
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
movzx edx, word [edi + 0x228]
cmp eax, edx
ja 0x4d3285
cmp byte [edi + 0x224], 0
jne 0x4d3285
cmp byte [edi + 0x2a0], 0
je 0x4d3255
test bl, bl
jne 0x4d329f
cmp byte [edi + 0x224], 0
jne 0x4d329f
cmp byte [edi + 0x2a0], 0
je 0x4d31b1
cmp byte [edi + 0x2a0], 0
jne 0x4d32b1
cmp byte [edi + 0x224], 0
jne 0x4d32b8
mov eax, edi
call fcn.004d35ac
pop edi
pop esi
pop ebx
ret
Function at 0x4dad7c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [esp + 0x105]
push eax
push 0
push 0x4dadc0
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [esp + 0x105]
call fcn.0040d0b8
add esp, 0x20c
pop ebx
ret
Function at 0x4db14c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov ecx, dword [0x4f7348]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4da18c]
call fcn.0045ffec
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4db33b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f75bc]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00465974
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x1ec]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
call fcn.00460de0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.00460e10
mov eax, dword [0x4f75bc]
mov eax, dword [eax]
call fcn.004653b8
mov edx, eax
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x4db1e7
adc edx, 0
mov eax, dword [ebp - 4]
call fcn.004470e0
mov eax, dword [0x4f75bc]
mov eax, dword [eax]
call fcn.004653ac
mov edx, eax
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x4db20a
adc edx, 0
mov eax, dword [ebp - 4]
call fcn.00447104
test bl, bl
je 0x4db290
mov eax, dword [edi + 0xc]
mov edx, dword [0x4699c4]
call fcn.004047d0
test al, al
jne 0x4db290
mov eax, dword [edi + 0xc]
mov edx, dword [0x429888]
call fcn.004047d0
test al, al
jne 0x4db290
mov eax, edi
call fcn.004dc220
test al, al
je 0x4db26d
cmp dword [0x4f68f0], 0
je 0x4db26d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.00447890
mov eax, dword [edi + 0xc]
mov cl, 0xff
mov edx, dword [ebp - 4]
call fcn.004dc458
jmp 0x4db290
push 0
mov eax, dword [edi + 0xc]
call fcn.004dab9c
push eax
mov eax, dword [ebp - 4]
call fcn.0044e190
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fe], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 8]
mov byte [eax + 0x2fd], dl
mov eax, dword [ebp - 4]
call fcn.0046435c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [0x4f7348]
mov eax, dword [eax]
call fcn.004674bc
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4db2da
mov eax, dword [0x4f7348]
mov eax, dword [eax]
call fcn.00467838
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2fe], 0
jne 0x4db317
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
imul eax, esi, 0x3e8
cdq
cmp edx, dword [esp + 4]
jne 0x4db313
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4db2ce
jmp 0x4db317
pop edx
pop eax
jg 0x4db2ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db342
mov eax, dword [0x4f75bc]
mov eax, dword [eax]
xor edx, edx
call fcn.00465974
mov eax, dword [ebp - 4]
call fcn.00404638
ret
Function at 0x4db60c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x4db620
mov ebx, 3
jmp 0x4db625
mov ebx, 1
push ebx
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00405978
push eax
push 0x4db650
mov eax, dword [0x4f7348]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
pop ebx
pop ebp
ret

Function at 0x4db658
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 1], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405968
mov eax, dword [ebp - 0xc]
call fcn.00405968
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x4db819
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4db7f1
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.00488524
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 8]
call fcn.00405540
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00488524
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.00405540
lea eax, [ebp - 0x54]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059d8
mov eax, dword [ebp - 0x54]
mov edx, 0x4db830
call fcn.004058c4
je 0x4db743
lea eax, [ebp - 0x58]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059d8
mov eax, dword [ebp - 0x58]
mov edx, 0x4db840
call fcn.004058c4
je 0x4db743
lea eax, [ebp - 0x5c]
push eax
mov ecx, 6
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059d8
mov eax, dword [ebp - 0x5c]
mov edx, 0x4db854
call fcn.004058c4
jne 0x4db754
mov eax, dword [0x4f70b8]
cmp dword [eax], 4
jg 0x4db754
push ebp
call fcn.004db60c
pop ecx
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00403ba0
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
mov eax, 0x4db85c
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00405978
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00405978
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x60]
call fcn.0040cea4
mov eax, dword [ebp - 0x60]
call fcn.00405978
mov dword [esi + 0x18], eax
cmp byte [ebp - 1], 0
je 0x4db7af
mov dword [esi + 0x1c], 3
jmp 0x4db7b6
mov dword [esi + 0x1c], 1
or eax, 0xffffffff
call fcn.00403bc0
mov dword [esi + 8], eax
mov ebx, dword [esi + 8]
test ebx, ebx
jbe 0x4db7b6
push ebx
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4db7b6
push esi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4db7f1
cmp byte [ebp + 8], 0
je 0x4db7f1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4db7f1
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db820
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.004054cc
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004054cc
ret
Function at 0x4db864
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov eax, dword [0x4f75e0]
cmp dword [eax], 2
je 0x4db87d
mov byte [esp], 1
jmp 0x4db952
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4db8bb
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4db8bb
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4db952
mov eax, 0x400
call fcn.00402e98
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4db94b
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4f6904
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4db941
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4db93d
mov byte [esp], 1
jmp 0x4db941
inc edi
dec ebx
jne 0x4db924
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402ec8
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4dba5c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4dbae8
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4dbacb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004db9f4
mov eax, dword [ebp - 0xc]
call fcn.00405978
push eax
call sub.kernel32.dll_GetFileAttributesA
test eax, eax
jns 0x4dbab1
call fcn.00404574
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbad2
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4e9288
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x58
call fcn.00403ba0
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x4ee8c4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4ee9dd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x14]
mov eax, dword [0x4f7348]
mov eax, dword [eax]
call fcn.004680b4
mov eax, dword [ebp - 0x14]
call fcn.00405978
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4ee9c7
push 2
push 0
push 0xfffffffffffffff6
push esi
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0xf]
xor ecx, ecx
mov edx, 0xb
call fcn.00403ba0
push 0
lea eax, [ebp - 4]
push eax
push 0xa
lea eax, [ebp - 0xf]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
mov edx, 0x4ee9ec
lea eax, [ebp - 0xf]
call fcn.0040cf9c
test eax, eax
jne 0x4ee97c
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x51d318
push esi
call sub.kernel32.dll_ReadFile_1
mov bl, 1
jmp 0x4ee9c1
mov edx, 0x4ee9f8
lea eax, [ebp - 0xf]
call fcn.0040cf9c
test eax, eax
jne 0x4ee9c1
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x51d318
push esi
call sub.kernel32.dll_ReadFile_1
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
sub eax, dword [0x51d318]
mov dword [0x51d318], eax
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee9e4
lea eax, [ebp - 0x14]
call fcn.004054a8
ret
Function at 0x404b80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x5fdb00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
jmp 0x404ba0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ba0
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
sub eax, esi
push edx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0x67452301
mov dword [ebp - 0x8c], 0xefcdab89
mov dword [ebp - 0x88], 0x98badcfe
mov dword [ebp - 0x84], 0x10325476
call fcn.004042f0
lea esi, [ebp - 0x90]
lea ebx, [ebp - 0x14]
call fcn.004043b0
xor esi, esi
lea edi, [ebp - 0x38]
jmp 0x404c00
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x5cf9c8
push edi
call fcn.00508da6
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x404c00
push 0x20
lea ecx, [ebp - 0x38]
push ecx
push 0x6080a0
call fcn.0050c4c0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
mov eax, 0x6080a0
pop ebx
call fcn.00507bdc
mov esp, ebp
pop ebp
ret