joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b428
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x568248], 0
je 0x49b569
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5621b4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x49b569
mov eax, dword [0x56824c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x568248]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x49b538
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x568248]
call fcn.004389d8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x49b530
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x49b530
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x49b530
mov eax, dword [ebp - 0x14]
call fcn.004a6dfc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x49b530
push ebp
call fcn.0049b3e4
pop ecx
test al, al
jne 0x49b530
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405894
test al, al
je 0x49b530
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00405894
cmp byte [ebp - 1], 0
je 0x49b530
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040b5a4
test al, al
je 0x49b530
mov edx, dword [ebp - 0x14]
mov eax, dword [0x56824c]
call fcn.0049ab40
inc edi
dec ebx
jne 0x49b48d
mov eax, dword [0x56824c]
cmp dword [eax + 8], 0
jle 0x49b550
mov eax, dword [0x56824c]
call fcn.0049abf8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x49b569
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0049b248
pop ecx
test al, al
jne 0x49b569
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a39a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040b58c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0049d9f0
test ebx, ebx
jne 0x4a39fb
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004a3824
mov ebx, eax
test ebx, ebx
je 0x4a3af1
cmp esi, ebx
je 0x4a3a24
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x4a3a39
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4a3a71
add eax, 0xffffff5f
sub eax, 2
jb 0x4a3a89
dec eax
sub eax, 2
jb 0x4a3a9d
dec eax
sub eax, 2
jb 0x4a3a93
jmp 0x4a3aa7
add eax, 0xfffffdff
sub eax, 2
jb 0x4a3a89
dec eax
sub eax, 2
jb 0x4a3a9d
dec eax
sub eax, 2
jb 0x4a3a93
jmp 0x4a3aa7
mov byte [esp + 0x120], 0
jmp 0x4a3aaf
mov byte [esp + 0x120], 2
jmp 0x4a3aaf
mov byte [esp + 0x120], 1
jmp 0x4a3aaf
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004775f4
mov esi, eax
call fcn.0049a2e0
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0049f3a0
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4a3af3
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4be5ec
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407790
xor eax, eax
push ebp
push 0x4be781
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4be74f
xor edx, edx
push ebp
push 0x4be748
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004077fc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4be65b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4be65b
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00406ad0
test eax, eax
je 0x4be664
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4be71d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x4be70c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004077fc
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4be6c6
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4be6c6
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406ad0
test eax, eax
je 0x4be6cf
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00407834
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00404404
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be713
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x561acc]
mov dl, 1
mov eax, dword [0x40e9ac]
call fcn.0041b090
call fcn.004060e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be788
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077a0
ret

Function at 0x4c1138
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407790
xor eax, eax
push ebp
push 0x4c11b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407834
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x4c1181
mov eax, dword [ebx + 4]
call fcn.00407834
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceW
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c11bd
lea eax, [ebp - 4]
call fcn.00407798
ret
Function at 0x4c2204
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c23ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
xor eax, eax
call fcn.00404620
cmp word [ebx + 0xaa], 0
je 0x4c224d
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x4c2261
lea esi, [ebp - 0xc]
jmp 0x4c2263
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x4c2270
xor edi, edi
jmp 0x4c227d
mov eax, dword [ebx + 0x88]
call fcn.00407834
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.00407834
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.004c1930
mov eax, dword [ebp - 0x14]
call fcn.00407834
push eax
push esi
mov eax, dword [ebx + 0x7c]
call fcn.00407834
push eax
mov eax, dword [ebp - 4]
call fcn.00407834
push eax
mov eax, ebx
call fcn.004c1a78
push eax
mov eax, ebx
call fcn.004c1a4c
push eax
mov eax, ebx
call fcn.004c1a04
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004c17d8
mov eax, dword [ebp - 0x18]
call fcn.00407834
push eax
mov eax, dword [ebx + 8]
call fcn.00407834
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x10], 0
jne 0x4c2309
call fcn.0041df60
xor edx, edx
push ebp
push 0x4c2382
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4c2347
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x4c233d
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c236b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2389
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x4c23bc
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xba], 0
je 0x4c23e8
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xbc]
call dword [esi + 0xb8]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00407834
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c240d
call fcn.0041df60
xor eax, eax
push ebp
push 0x4c2444
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4c242d
call fcn.0041df60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c244b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4c5d2c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00407834
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4c5dcb
xor eax, eax
push ebp
push 0x4c5dc4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0x14], eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
mov dword [ebx + 0x10], esi
mov edx, esi
mov eax, ebx
call fcn.004c5b9c
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x4c5dad
push 0
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebx + 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4c5dad
call fcn.0041df60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5dd0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
call fcn.0041df60
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c66c0
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
or eax, 0xffffffff
cmp dword [ebx + 8], 0xffffffff
je 0x4c66eb
push esp
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_GetFileSizeEx
test al, al
je 0x4c66e4
cmp dword [esp + 4], 0
je 0x4c66e8
xor eax, eax
jmp 0x4c66eb
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4c8ffc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.00406938
mov esi, ebx
mov eax, dword [ebp]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
test eax, eax
je 0x4c902a
sub eax, 4
mov eax, dword [eax]
test ax, ax
jbe 0x4c9074
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.00406ff0
movzx edi, bx
mov edx, dword [ebp]
movzx edx, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x4c9038
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c9408
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.00406938
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x4c9431
sub eax, 4
mov eax, dword [eax]
test ax, ax
jbe 0x4c9477
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.00406ff0
movzx ebp, bx
mov edx, dword [esi]
movzx edx, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xce6d
add ax, 0x58bf
mov edi, eax
inc ebx
dec word [esp]
jne 0x4c943e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4cddf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cde8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x562600]
cmp dword [eax], 2
jne 0x4cde38
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
jmp 0x4cde70
lea eax, [ebp - 8]
mov edx, esi
call fcn.004074ec
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00406c8c
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00406f78
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cde95
lea eax, [ebp - 8]
call fcn.00407388
lea eax, [ebp - 4]
call fcn.004068e4
ret

Function at 0x4ce2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00407834
mov edx, eax
mov eax, ebx
call fcn.004cdc64
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.004cdd40
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x4ce332
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00407834
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4d14c8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407790
xor eax, eax
push ebp
push 0x4d15a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push 0x4d15b4
push 0
mov eax, ebx
call fcn.00407834
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x4d1573
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d1539
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d1539
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406ad0
mov ebx, eax
test ebx, ebx
je 0x4d1544
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, dword [ebp - 4]
call fcn.00407834
push eax
push 1
push 0
mov eax, esi
call fcn.00407834
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x4d158e
mov ecx, dword [0x561d90]
mov dl, 1
mov eax, dword [0x4cfff0]
call fcn.0041b090
call fcn.004060e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d15ab
lea eax, [ebp - 4]
call fcn.00407798
ret

Function at 0x4d3224
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x4d3239
add esp, 0xfffffff0
call fcn.00405b3c
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.004055d8
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.00414afc
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x4d3267
call fcn.0041df60
and si, 0xf
cmp si, 2
jne 0x4d327d
mov esi, 8
mov edi, 1
jmp 0x4d3287
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4d32c0
mov eax, ebx
call fcn.004d3384
mov ecx, dword [0x561f80]
mov dl, 1
mov eax, dword [0x4d2ef0]
call fcn.004cb1d0
call fcn.004060e0
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x4d32f4
mov eax, ebx
call fcn.004d3384
mov ecx, dword [0x5623f4]
mov dl, 1
mov eax, dword [0x4d2fa0]
call fcn.004cb1d0
call fcn.004060e0
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0xffffffff
jne 0x4d3328
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.004d3384
mov ecx, dword [0x562238]
mov dl, 1
mov eax, dword [0x4d2fa0]
call fcn.004cb1d0
call fcn.004060e0
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0043cd60
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4d334a
call fcn.00405b94
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4d3614
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x4d3632
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4d362a
test al, 0x10
je 0x4d362e
xor eax, eax
jmp 0x4d3634
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4d3cbc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d3d72
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00407834
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x4d3d5c
lea eax, [ebp - 4]
mov edx, edi
call fcn.00407b0c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.00407834
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4d3d5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d3d84
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d3d5c
cmp dword [ebp - 0xc], 0x34
jne 0x4d3d5c
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3d79
lea eax, [ebp - 4]
call fcn.00407798
ret

Function at 0x4d3dec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x4d3e01
add esp, 0xfffffff0
call fcn.00405b3c
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, edi
call fcn.004d3614
test al, al
jne 0x4d3e37
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0x11
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x561d50]
mov dl, 1
mov eax, dword [0x4d2218]
call fcn.0041b160
call fcn.004060e0
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00407834
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x4d3e6a
mov ecx, dword [0x561f14]
mov dl, 1
mov eax, dword [0x4d2218]
call fcn.0041b090
call fcn.004060e0
lea eax, [ebx + 4]
xor ecx, ecx
mov edx, esi
call fcn.004071ec
mov eax, dword [ebx + 4]
call fcn.00406f78
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.00407834
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.0041e004
mov eax, ebx
call fcn.004d4664
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4d3eb4
call fcn.00405b94
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d5a48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 8], 0
jbe 0x4d5b06
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4d5b06
xor eax, eax
push ebp
push 0x4d5aff
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [ebp - 8]
call fcn.00404404
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
sub eax, 0x10
je 0x4d5ac4
sub eax, 0x10
je 0x4d5ac4
sub eax, 0x20
je 0x4d5ac4
sub eax, 0x40
jne 0x4d5ad7
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
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 0x4d5b06
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 8]
sete al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4daed4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
xor eax, eax
mov dword [ebp - 0x120], eax
xor eax, eax
push ebp
push 0x4daf92
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x562600]
cmp dword [eax], 2
jne 0x4daf3a
mov eax, dword [0x561da4]
cmp dword [eax], 5
jl 0x4daf3a
lea eax, [ebp - 0x11c]
mov edx, 0x11c
call fcn.004d5a38
mov dword [ebp - 0x11c], 0x11c
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x4daf79
movzx ebx, word [ebp - 8]
jmp 0x4daf79
push 0
mov ecx, 0x4dafac
mov edx, 0x4dafd0
mov eax, 0x80000002
call fcn.004ce464
mov ebx, eax
lea ecx, [ebp - 0x120]
mov edx, 4
mov eax, ebx
call fcn.0041469c
mov eax, dword [ebp - 0x120]
call fcn.004146c4
mov ecx, 0x64
cdq
idiv ecx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4daf99
lea eax, [ebp - 0x120]
call fcn.00407798
ret