joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ddb20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe408
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x57b070]
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 dword [ebp - 0x44], ecx
mov edi, dword [ebp + 8]
mov ecx, 7
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
lea eax, [esi + 0x18]
cmp edx, eax
je 0x4ddb8f
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4ddb80
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00418a60
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4ddbe4
shr eax, 4
not al
and al, 1
je 0x4ddbe4
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00447320
mov ecx, dword [ebp - 0x44]
push edi
call fcn.004dd7a0
test al, al
jne 0x4ddca5
push 0x23
push str.load_exists_user_fuzzy_file_failed.
mov ecx, edi
call fcn.004442e0
mov ecx, 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x4ddc1d
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ddc0e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00418a60
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4ddc73
shr eax, 4
not al
and al, 1
je 0x4ddc73
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00447320
mov ecx, dword [ebp - 0x44]
push edi
call fcn.004dd7a0
test al, al
jne 0x4ddca9
push 9
push 0x558ad4
mov ecx, edi
call fcn.004442e0
push 0xb
push 0x558abc
mov ecx, edi
call fcn.004442e0
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.00418a00
lea ecx, [ebp - 0x40]
call fcn.00418a00
mov al, bl
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.004a35cb
mov esp, ebp
pop ebp
ret 8
mov bl, 1
jmp 0x4ddc7d
mov bl, 1
jmp 0x4ddc75
Function at 0x4dec40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe703
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x34]
cmp dword [0x57e6c0], 8
mov eax, 0x57e6ac
push 1
cmovae eax, dword [0x57e6ac]
push eax
call fcn.004cf8a0
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
jne 0x4decc3
mov dword [ebp - 0x34], 0x556b90
jmp 0x4dee24
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4decf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
and eax, 0x55707c
mov dword [ebp - 0x34], eax
jmp 0x4dee24
cmp eax, 0xa00000
jl 0x4dee24
add eax, 0xffb00000
mov dword [ebp - 0x74], 0
push 1
push eax
lea ecx, [ebp - 0x34]
call fcn.004cf0f0
test al, al
je 0x4dee24
mov dword [ebp - 0x7c], 0xff0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
push 0x500004
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.004cd070
mov esi, eax
test esi, esi
je 0x4dee19
lea eax, [ebp - 0x74]
push eax
push 0x500000
push esi
lea ecx, [ebp - 0x34]
call fcn.004cf560
lea ecx, [ebp - 0x34]
call fcn.004cf770
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004e9c40
push 5
push 0x558c44
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004442e0
lea ecx, [ebp - 0x4c]
call fcn.004d4830
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
mov dword [ebp - 0x54], 0xffffffff
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x70]
push 2
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.004cf8a0
test al, al
je 0x4dedfd
lea eax, [ebp - 0x74]
push eax
push 0x500000
push esi
lea ecx, [ebp - 0x70]
call fcn.004cf2d0
test al, al
je 0x4dedfd
lea ecx, [ebp - 0x70]
call fcn.004cf770
mov edx, 0x57e6ac
lea ecx, [ebp - 0x4c]
call fcn.004d0500
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.004cf770
lea ecx, [ebp - 0x6c]
call fcn.00418a00
lea ecx, [ebp - 0x4c]
call fcn.004e9cc0
lea ecx, [ebp - 0x84]
call fcn.004cd180
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xa
call fcn.004cf770
lea ecx, [ebp - 0x30]
call fcn.00418a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4df180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa14
mov eax, dword [0x57b070]
xor eax, esp
mov dword [esp + 0xa10], eax
cmp byte [0x5835b6], 0
push ebx
push esi
push edi
jne 0x4df3bd
cmp byte [0x5835b7], 0
jne 0x4df330
cmp dword [0x57e620], 8
mov edx, 0x57e60c
mov byte [0x5835b6], 1
cmovae edx, dword [0x57e60c]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4df1d6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x57e6ac
call fcn.00418a60
mov ecx, 0x57e6ac
call fcn.004d4830
push 1
push 0x5528b0
mov ecx, 0x57e6ac
call fcn.004442e0
push 0xd
push str.imekernel.log
mov ecx, 0x57e6ac
call fcn.004442e0
mov ecx, 0x57e6ac
call fcn.004d4830
cmp dword [0x57e6c0], 8
mov eax, 0x57e6ac
push 0x551f54
cmovae eax, dword [0x57e6ac]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004b1a8f
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
jne 0x4df29d
cmp dword [0x57e6c0], 8
mov eax, 0x57e6ac
push 0x558d78
cmovae eax, dword [0x57e6ac]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004b1a8f
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0x4df2a6
push eax
push 1
push 2
push 0x558da4
call fcn.004b6579
mov eax, dword [esp + 0x1c]
add esp, 0x10
test eax, eax
je 0x4df2a6
push eax
call fcn.004b1b4c
add esp, 4
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004a64e0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4df31d
xor eax, eax
xor edx, edx
mov word [esp + 0x216], ax
lea edi, [eax + 0x5c]
lea ebx, [eax + 0x2f]
movzx ecx, word [esp + eax*2 + 0x10]
xor esi, esi
cmp si, cx
je 0x4df303
cmp di, cx
je 0x4df2f8
cmp bx, cx
jne 0x4df2fb
lea edx, [eax + 1]
inc eax
cmp eax, 0x103
jl 0x4df2e2
lea eax, [esp + 0x10]
lea eax, [eax + edx*2]
push eax
push 0x104
push 0x5835b8
call fcn.004b3332
add esp, 0xc
call fcn.004dec40
mov byte [0x5835b7], 1
mov byte [0x5835b6], 0
lea eax, [ebp + 0xc]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 8]
lea ecx, [esp + 0x224]
push 0x400
call fcn.00448d70
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4df3bd
cmp dword [0x57e6c0], 8
mov ecx, 0x57e6ac
push 0x558d9c
cmovae ecx, dword [0x57e6ac]
push ecx
push 0x5837c0
call fcn.004b1a8f
mov eax, dword [0x5837c0]
add esp, 0xc
test eax, eax
je 0x4df3b3
push eax
push esi
lea eax, [esp + 0x220]
push 2
push eax
call fcn.004b6579
push dword [0x5837c0]
call fcn.004b62e8
add esp, 0x14
push dword [0x5837c0]
call fcn.004b1b4c
add esp, 4
mov dword [0x5837c0], 0
mov ecx, dword [esp + 0xa1c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4df7b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
mov edi, ecx
lea ebx, [esi + 4]
push ebx
push 0
push 4
call fcn.004ea660
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4df885
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b35c1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b4336
push dword [ebp - 0x28]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [ebp - 0x24]
cmovae ecx, dword [0x57e624]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x87
push str.t_filemap::Create
push str.__S_L:_d__
call fcn.004df180
push esi
push str.create_filemapping_fail:_d_r_n
call fcn.004df180
add esp, 0x44
mov dword [edi], 0x558ed4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
push ebx
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4df946
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b35c1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b4336
push dword [ebp - 0x28]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [ebp - 0x24]
cmovae ecx, dword [0x57e624]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x90
push str.t_filemap::Create
push str.__S_L:_d__
call fcn.004df180
push esi
push str.mapview_of_file_fail:_d_r_n
call fcn.004df180
add esp, 0x44
mov dword [edi], 0x558efc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov byte [edi + 0x14], 0
xor ecx, ebp
mov dword [eax], esi
mov al, 1
mov dword [edi + 8], esi
mov dword [edi], 0
mov byte [edi + 0x15], 1
mov dword [edi + 0x10], 1
pop edi
pop esi
pop ebx
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 8
Function at 0x4df980
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x4dfb11
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dfb11
push esi
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push 0
push 0x80
push 3
push 0
push 1
push 1
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x4dfa10
cmp ebx, 0xffffffff
jne 0x4dfa10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004df100
push 0x1e
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.004df180
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push str.open_file_fail:_d__path:_s__name:_s_r_n
call fcn.004df180
add esp, 0x1c
mov dword [edi], 0x558e90
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
test eax, eax
jns 0x4dfa27
mov dword [edi + 8], 0
cmp dword [edi + 4], 0
jne 0x4dfa8f
push esi
push dword [edi + 8]
push 0
push 2
call fcn.004ea660
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4dfa8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004df100
push 0x2f
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.004df180
push esi
push str.create_filemap_fail:_d_r_n
call fcn.004df180
add esp, 0x14
mov dword [edi], 0x558ed4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov byte [edi + 0x15], 1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push 0
push 0
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4dfaf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004df100
push 0x3e
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.004df180
push esi
push str.mapview_of_file_fail:_d_r_n
call fcn.004df180
add esp, 0x14
mov dword [edi], 0x558efc
push dword [edi + 4]
call ebx
mov dword [edi + 4], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov byte [edi + 0x14], 1
mov al, 1
mov dword [edi + 0x10], 1
mov dword [edi], 0
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov dword [edi], 0x556ba8
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4dfb20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x4dfb55
mov dword [edi], 0x556ba8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 4], eax
test eax, eax
jne 0x4dfb81
mov dword [edi], 0x558ee8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4dfc3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b35c1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b4336
push dword [ebp - 0x28]
cmp dword [0x57e638], 8
mov ecx, 0x57e624
push dword [ebp - 0x24]
cmovae ecx, dword [0x57e624]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
inc eax
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x76c
push eax
push ecx
push 0x5835b8
push str.__s___s___04d__02d__02d__02d:_02d:_02d_
call fcn.004df180
push 0x6b
push str.t_filemap::Open
push str.__S_L:_d__
call fcn.004df180
push esi
push str.mapview_of_file_fail:_d_r_n
call fcn.004df180
add esp, 0x44
mov dword [edi], 0x558efc
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov byte [edi + 0x14], 0
xor ecx, ebp
mov eax, dword [eax]
mov dword [edi + 8], eax
mov al, 1
mov dword [edi + 0x10], 1
mov byte [edi + 0x15], 0
mov dword [edi], 0
pop edi
pop esi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4feea3
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x57b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e9cef
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e9d0d
shr eax, 4
not al
and al, 1
je 0x4e9d0d
mov ecx, esi
call fcn.004d0840
jmp 0x4e9d31
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4e9d17
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e9d31
shr eax, 4
and al, 1
je 0x4e9d31
mov ecx, esi
call fcn.004d0620
mov ecx, esi
call fcn.00418a00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ea400
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x57b070]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.004a64e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4ea59b
push 0x55a3ac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004b2db6
add esp, 0xc
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x218]
xorps xmm0, xmm0
movq qword [ebp - 0x228], xmm0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4ea59b
push ebx
push esi
push eax
xor bl, bl
call fcn.004b12a2
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push dword [ebp - 0x218]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4ea51c
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0x5528b0
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ea51c
mov eax, dword [ebp - 0x21c]
mov bl, 1
mov cx, word [eax + 0xa]
mov word [ebp - 0x20e], cx
mov cx, word [eax + 8]
mov word [ebp - 0x210], cx
mov cx, word [eax + 0xe]
mov word [ebp - 0x212], cx
jmp 0x4ea546
mov ax, word [ebp - 0x224]
mov word [ebp - 0x212], ax
mov ax, word [ebp - 0x226]
mov word [ebp - 0x210], ax
mov ax, word [ebp - 0x228]
mov word [ebp - 0x20e], ax
test esi, esi
je 0x4ea553
push esi
call fcn.004ac7ec
add esp, 4
pop esi
test bl, bl
pop ebx
je 0x4ea59b
movzx eax, word [ebp - 0x20e]
mov dword [edi + 4], eax
movzx eax, word [ebp - 0x210]
mov dword [edi + 8], eax
movzx eax, word [ebp - 0x212]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi], 0x114
mov dword [edi + 0x10], 2
mov word [edi + 0x14], ax
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop edi
call fcn.004a35cb
mov esp, ebp
pop ebp
ret
Function at 0x4ea990
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
push esi
mov esi, dword [ebx]
test esi, esi
je 0x4eaa4f
movzx eax, word [esi]
mov ecx, 0x82
cmp ax, cx
jae 0x4eaa4f
test al, 1
jne 0x4eaa4f
test ax, ax
je 0x4eaa4f
movsx eax, word [esi]
cdq
push edi
sub eax, edx
xor edi, edi
mov edx, eax
sar edx, 1
lea ecx, [edi + 1]
cmp edx, ecx
jl 0x4ea9eb
nop dword [eax + eax]
movsx eax, word [esi + ecx*2]
inc ecx
add edi, eax
cmp ecx, edx
jle 0x4ea9e0
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov word [eax + 0xc], di
mov eax, dword [0x5837cc]
lea edx, [edx + edi]
mov ecx, dword [eax]
lea eax, [esi + edi]
shl ax, cl
shl dx, cl
add dx, ax
mov eax, dword [ebx]
movzx edi, dx
movzx ecx, word [eax]
add eax, 2
and esi, 0x80000007
jns 0x4eaa26
dec esi
or esi, 0xfffffff8
inc esi
movzx edx, si
mov esi, ecx
shr esi, 1
je 0x4eaa46
mov ecx, edx
mov dx, word [eax]
lea eax, [eax + 2]
xor dx, di
rol dx, cl
mov word [eax - 2], dx
sub esi, 1
jne 0x4eaa31
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4eac10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5837cc]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [eax]
push edi
mov edi, dword [ebp + 8]
lea esi, [esi + edx]
shl si, cl
lea eax, [edi + edx]
shl ax, cl
add si, ax
movzx eax, si
mov dword [ebp + 0xc], eax
mov eax, dword [ebx]
movzx ecx, word [eax]
add eax, 2
and edi, 0x80000007
jns 0x4eac4f
dec edi
or edi, 0xfffffff8
inc edi
mov esi, ecx
movzx ebx, di
shr esi, 1
je 0x4eac78
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov dx, word [eax]
lea eax, [eax + 2]
mov cx, bx
ror dx, cl
xor dx, di
mov word [eax - 2], dx
sub esi, 1
jne 0x4eac60
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x4ec0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x57e620], 8
push esi
mov esi, 0x57e60c
cmovae esi, dword [0x57e60c]
mov edx, esi
push edi
mov edi, ecx
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4ec0f0
sub edx, ecx
sar edx, 1
push edx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00418a60
mov ecx, esi
call fcn.004d4830
mov edi, dword [edi]
test edi, edi
je 0x4ec150
cmp word [edi], 0
je 0x4ec150
push 1
push 0x5528b0
mov ecx, esi
call fcn.004442e0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ec131
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.004442e0
mov ecx, esi
call fcn.004d4830
cmp byte [ebp + 0xc], 0
jne 0x4ec15e
pop edi
mov al, 1
pop esi
pop ebp
ret 8
cmp dword [esi + 0x14], 8
jb 0x4ec166
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ec17b
shr eax, 4
not al
and al, 1
jne 0x4ec156
pop edi
xor al, al
pop esi
pop ebp
ret 8

Function at 0x4f1950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push 0
mov esi, ecx
push 0
push esi
push dword [ebp + 8]
mov dword [esi + 8], eax
push 0
push 0
mov byte [esi + 0xc], 0
call fcn.004b329f
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
setne al
pop esi
pop ebp
ret 8
Function at 0x4f7860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff75d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x57b070]
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 dword [ebp - 0x44], ecx
mov edi, dword [ebp + 8]
mov ecx, 7
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
lea eax, [esi + 0x18]
cmp edx, eax
je 0x4f78cf
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4f78c0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00418a60
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
mov dword [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f7922
shr eax, 4
not al
and al, 1
je 0x4f7922
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
call fcn.004f77a0
test al, al
jne 0x4f79d3
push 0x1e
push str.load_user_path_correct_failed.
mov ecx, edi
call fcn.004442e0
mov ecx, 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp eax, esi
je 0x4f795b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4f794c
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00418a60
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4f79a1
shr eax, 4
not al
and al, 1
je 0x4f79a1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
call fcn.004f77a0
test al, al
jne 0x4f79d7
push 0x1d
push str.load_sys_path_correct_failed.
mov ecx, edi
call fcn.004442e0
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.00418a00
lea ecx, [ebp - 0x40]
call fcn.00418a00
mov al, bl
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.004a35cb
mov esp, ebp
pop ebp
ret 8
mov bl, 1
jmp 0x4f79ab
mov bl, 1
jmp 0x4f79a3