joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49df8c
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x59707c]
cmp dword [eax], 2
je 0x49dfa9
mov byte [ebp - 1], 1
jmp 0x49e177
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x595f68
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x49e177
xor eax, eax
push ebp
push 0x49e170
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x49e00b
push 0x49e184
push 0x49e1b0
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x49e032
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x49e159
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x49e159
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x49e083
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x49e064
call fcn.00404b68
jmp 0x49e177
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x49e083
call fcn.00404b68
jmp 0x49e177
xor eax, eax
push ebp
push 0x49e152
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49e0c6
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x49e0c6
call fcn.00404b68
call fcn.00404b68
jmp 0x49e177
mov eax, dword [ebp - 0x14]
call fcn.00403018
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x49e0f8
call fcn.00404b68
call fcn.00404b68
jmp 0x49e177
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x49e133
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x49e12f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x49e12f
mov byte [ebp - 1], 1
jmp 0x49e133
inc ebx
dec esi
jne 0x49e105
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e159
mov eax, dword [ebp - 0x18]
call fcn.00403034
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e177
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ec34
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x49ecdb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x59707c]
cmp dword [eax], 2
jne 0x49ec77
push 1
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileExW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x49ecc5
mov eax, esi
call fcn.004064d4
mov edx, eax
lea eax, [ebp - 4]
call fcn.00406604
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x49ecaa
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x49ecc5
mov eax, esi
call fcn.004064d4
push eax
mov eax, edi
call fcn.004064d4
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ece2
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x4a0718
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x59d1f4
mov eax, esi
mov edx, 8
test al, 1
je 0x4a0734
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a0736
shr eax, 1
dec edx
jne 0x4a0727
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a0720
pop esi
ret

Function at 0x4a074c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x59d1f0], 0
jne 0x4a076f
call fcn.004a0718
push 1
push 0x59d1f0
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4a079a
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x59d1f4]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4a0775
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a8274
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
lea edi, [ebp - 0xd]
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x4a8424
inc esi
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, 5
call fcn.004a6e88
pop ecx
test al, al
jne 0x4a82bb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004a8558
xor ebx, ebx
jmp 0x4a8424
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [edi]
ja 0x4a82d9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004a8558
xor ebx, ebx
jmp 0x4a8424
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [edi]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.004bf1ec
test eax, eax
jne 0x4a8310
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.004a8558
xor ebx, ebx
jmp 0x4a8424
test byte [edi + 4], 1
je 0x4a841d
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.004a6e88
pop ecx
test al, al
jne 0x4a8344
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004a8558
xor ebx, ebx
jmp 0x4a8424
mov edx, dword [0x4a44c0]
mov eax, 0xc
call fcn.0040766c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a83ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.00405d30
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00405ac4
mov edx, dword [ebp - 4]
call fcn.004a6e88
pop ecx
test al, al
jne 0x4a83b2
mov edx, dword [0x4a44c0]
mov eax, dword [ebp - 8]
call fcn.00407680
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.004a8558
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a8424
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004a1b88
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.004a1fa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a841d
dec esi
jne 0x4a8292
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5324
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ebx, ebx
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x4c5370
cmp dword [ebp - 0x104], 2
jne 0x4c5370
cmp dword [ebp - 0x110], 5
ja 0x4c536e
cmp dword [ebp - 0x110], 5
jne 0x4c5370
cmp dword [ebp - 0x10c], 1
jb 0x4c5370
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5378
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0042ac8c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c6968
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0042ac8c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9d48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0042ac8c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cc228
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
xor edx, edx
mov dword [ebp - 0x25c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cc2fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x258]
push eax
lea edx, [ebp - 0x25c]
mov eax, ebx
call fcn.0049c230
lea eax, [ebp - 0x25c]
mov edx, 0x4cc318
call fcn.00406854
mov eax, dword [ebp - 0x25c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4cc2e1
xor eax, eax
push ebp
push 0x4cc2da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x258]
call fcn.004cc1d8
test al, al
je 0x4cc2af
mov byte [ebp - 1], 1
jmp 0x4cc2c3
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4cc29a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc2e1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc301
lea eax, [ebp - 0x25c]
call fcn.00406438
ret

Function at 0x4cc31c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffd4c
mov ebx, edx
mov esi, eax
push 0x200
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4cc35c
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, 0x104
call fcn.00406640
jmp 0x4cc365
mov eax, ebx
xor edx, edx
call fcn.00406448
add esp, 0x2b4
pop esi
pop ebx
ret
Function at 0x4cc370
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffd4c
mov ebx, edx
mov esi, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x596628]
or eax, 0x4001
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4cc3af
mov eax, dword [esp + 4]
jmp 0x4cc3b1
xor eax, eax
add esp, 0x2b4
pop esi
pop ebx
ret

Function at 0x4cc3bc
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x596630]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x4cc400
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4cc3f5
mov eax, dword [esp + 4]
jmp 0x4cc3f7
xor eax, eax
add esp, 0x2b4
pop ebx
ret

Function at 0x4cc3df
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffd4c
mov ebx, eax
movzx eax, bl
mov eax, dword [eax*4 + 0x596630]
or eax, 0x4011
push eax
push 0x2b4
lea eax, [esp + 8]
push eax
push 0x10
push 0x4cc400
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4cc3f5
mov eax, dword [esp + 4]
jmp 0x4cc3f7
xor eax, eax
add esp, 0x2b4
pop ebx
ret

Function at 0x4cc858
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
test dl, dl
je 0x4cc86c
add esp, 0xfffffff0
call fcn.004044d0
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0047c068
mov eax, dword [0x4cc910]
not eax
and eax, dword [esi + 0x50]
mov dword [esi + 0x50], eax
mov edx, 0x79
mov eax, esi
call fcn.004786f8
mov edx, 0x61
mov eax, esi
call fcn.0047872c
xor edx, edx
mov eax, esi
call fcn.00479274
mov dl, 1
mov eax, esi
call fcn.00481c8c
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jae 0x4cc8cb
mov dx, 0xfffe
mov eax, esi
call fcn.004792bc
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x5c
push 0x1f
call sub.user32.dll_SystemParametersInfoW
test eax, eax
je 0x4cc8f1
lea eax, [ebp - 0x5c]
push eax
call sub.gdi32.dll_CreateFontIndirectW
mov edx, eax
mov eax, dword [esi + 0x64]
call fcn.0044ef44
mov eax, esi
test bl, bl
je 0x4cc906
call fcn.00404528
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cd9ac
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cdb78
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4cdb4b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x4cda09
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4cda47
mov eax, ebx
call fcn.004cc65c
test al, al
jne 0x4cda27
mov byte [ebp - 5], 0
call fcn.00404b68
jmp 0x4cdb52
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.004cc31c
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004cddd8
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0049c230
lea eax, [ebp - 0x268]
mov edx, 0x4cdb98
call fcn.00406854
mov eax, dword [ebp - 0x268]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4cdb34
xor eax, eax
push ebp
push 0x4cdb2d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004cc1d8
test al, al
je 0x4cdb02
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.0049c230
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00406854
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.004cc31c
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004cd3c8
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4cda9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdb34
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdb52
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdb7f
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4cde68
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ce05e
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4cdeed
lea edx, [ebp - 0x264]
mov eax, edi
call fcn.0049c7c4
mov eax, dword [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0049c230
mov eax, dword [ebp - 0x268]
pop edx
call fcn.0049c448
test eax, eax
jne 0x4cdeed
lea edx, [ebp - 4]
mov eax, edi
call fcn.0049c79c
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ce02c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x26c]
mov eax, ebx
call fcn.0049c230
lea eax, [ebp - 0x26c]
mov edx, 0x4ce078
call fcn.00406854
mov eax, dword [ebp - 0x26c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4ce015
xor eax, eax
push ebp
push 0x4ce00e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004cc1d8
test al, al
je 0x4cdfdf
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0049c448
test eax, eax
je 0x4cdfdf
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004cd4bc
test eax, eax
jne 0x4cdfdf
lea edx, [ebp - 0x274]
mov eax, ebx
call fcn.0049c230
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.00406854
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.004cc31c
mov eax, dword [ebp - 0x270]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004cd3c8
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4cdf55
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce015
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce033
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4ce330
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0042ac8c
add esp, 0x208
pop ebx
ret

Function at 0x4d0ac4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.0042ac8c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d0af4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x4d0c10
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x59dc0c]
cmp dword [0x59dc08], 0
jne 0x4d0beb
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 6
jb 0x4d0beb
lea eax, [ebp - 8]
call fcn.004d0ac4
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0049c230
lea eax, [ebp - 4]
mov edx, 0x4d0c2c
call fcn.00406854
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x59dc08], eax
cmp dword [0x59dc08], 0
je 0x4d0beb
push 0x4d0c48
mov eax, dword [0x59dc08]
push eax
call fcn.00409620
mov dword [0x59dbec], eax
push 0x4d0c68
mov eax, dword [0x59dc08]
push eax
call fcn.00409620
mov dword [0x59dbf0], eax
push 0x4d0c90
mov eax, dword [0x59dc08]
push eax
call fcn.00409620
mov dword [0x59dbf4], eax
push 0x4d0ca4
mov eax, dword [0x59dc08]
push eax
call fcn.00409620
mov dword [0x59dbf8], eax
push 0x4d0cbc
mov eax, dword [0x59dc08]
push eax
call fcn.00409620
mov dword [0x59dbfc], eax
push 0x4d0cd0
mov eax, dword [0x59dc08]
push eax
call fcn.00409620
mov dword [0x59dc00], eax
cmp dword [0x59dc08], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0c17
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406440
ret

Function at 0x4d0f24
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x4d0fc6
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4d0fbf
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
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4d0fa9
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d0fe8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4d0fa9
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0fdd
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
mov eax, dword [0x59707c]
cmp dword [eax], 1
je 0x4d0fdd
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004d0d48
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d11f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d1211
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d125f
xor eax, eax
push ebp
push 0x4d124f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1256
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1268
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d128c
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d12f2
xor eax, eax
push ebp
push 0x4d12e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
push edi
push esi
call sub.kernel32.dll_CreateProcessW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d12e9
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4d1300
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004d11a4
test al, al
jne 0x4d1324
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4d137c
xor eax, eax
push ebp
push 0x4d136c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.004064d4
push eax
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CopyFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1373
lea eax, [ebp - 0xc]
call fcn.004d11e0
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4