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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, eax
push dword [edi]
lea esi, [ebp - 8]
call fcn.00483875
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.004011c0
mov eax, dword [edi]
xor ebx, ebx
push 3
pop esi
inc ebx
cmp dword [eax - 0xc], esi
jl 0x48dd31
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48dcaa
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, ebx
je 0x48dd31
mov ecx, esi
lea edx, [ebp - 8]
mov eax, edi
call fcn.004321d4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
mov eax, dword [ebp - 8]
setne bl
add eax, 0xfffffff0
call fcn.004011c0
test bl, bl
je 0x48dcdb
mov dword [ebp - 4], 2
jmp 0x48dd34
call fcn.0048dbc5
test eax, eax
je 0x48dce9
mov dword [ebp - 4], esi
jmp 0x48dd34
mov ecx, esi
lea edx, [ebp - 8]
mov eax, edi
call fcn.004321d4
push dword [eax]
call fcn.0048d4e4
mov ebx, eax
mov eax, dword [ebp - 8]
neg ebx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.004011c0
test bl, bl
je 0x48dd1d
mov dword [ebp - 4], 4
jmp 0x48dd34
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x96
jle 0x48dd34
mov dword [ebp - 4], 5
jmp 0x48dd34
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push dword [eax + 0x594]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x490b18
Capabilities:
Create thread

Disassembly:
push 0x18
call fcn.00465fbb
pop ecx
xor ecx, ecx
cmp eax, ecx
jne 0x490b29
xor eax, eax
ret
mov edx, dword [esp + 4]
push ecx
push ecx
push eax
mov dword [eax], edx
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x14]
push 0x44b5ec
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
push ecx
push ecx
mov dword [eax + 0xc], edx
call fcn.004a162a
add esp, 0x18
ret

Function at 0x490e3c
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.0049cee0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x490e83
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f2e6c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0043238b
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490ecc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011c0
jmp 0x490e7e
push esi
push dword [ebp - 4]
xor esi, esi
inc esi
push esi
push str.switch
push str.updatecheck
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, esi
jne 0x490ef8
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
pop esi
leave
ret
xor esi, esi
jmp 0x490ee8

Function at 0x491047
Capabilities:
Delete file

Disassembly:
mov eax, 0x59b030
call fcn.00596170
sub esp, 0xc
push ebx
push edi
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
and dword [ebp - 4], 0
mov eax, dword [0x61c924]
mov ecx, 0x61c924
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
lea edi, [esi + 0x30]
push edi
mov byte [ebp - 4], 1
call fcn.00483902
pop ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x12c
push 0
push dword [ebp + 0xc]
lea eax, [esi + 0x28]
push edi
push eax
call fcn.00485b35
mov ecx, dword [ebp + 8]
add esp, 0x14
xor edi, edi
test eax, eax
mov dword [ecx], eax
je 0x4910d4
lea eax, [ebx - 0x10]
call fcn.004011c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
inc edi
jmp 0x4910b3
Function at 0x491118
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x59b030
call fcn.00596170
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x14], 1
and dword [ebp - 4], 0
lea esi, [edi + 0x30]
push esi
call fcn.00483902
pop ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x491168
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
mov eax, dword [0x61c924]
mov ecx, 0x61c924
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s__update:0
mov byte [ebp - 4], 1
call fcn.00432306
mov ebx, dword [ebp - 0x10]
mov esi, dword [esi]
push 0xffffffffffffffff
push ebx
push esi
xor ecx, ecx
call fcn.0048294e
add esp, 0x14
xor esi, esi
test eax, eax
jne 0x4911bb
lea eax, [ebx - 0x10]
call fcn.004011c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x491158
inc esi
jmp 0x4911a8

Function at 0x4911be
Capabilities:
Get common file path

Disassembly:
mov eax, 0x59b016
call fcn.00596170
sub esp, 0x214
mov eax, dword [0x61c924]
push ebx
push esi
mov esi, 0x61c924
push edi
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [0x61c924]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x206
lea eax, [ebp - 0x21e]
push edi
mov byte [ebp - 4], 1
push eax
mov word [ebp - 0x220], di
call fcn.0049cee0
add esp, 0xc
push edi
call fcn.0049fd68
pop ecx
push edx
push eax
push str.http:__2398.35go.net_defend_o1_jcqgx.ini
lea eax, [ebp - 0x14]
call fcn.0042658c
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0043312e
test eax, eax
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
jne 0x4912b6
cmp dword [ebx - 0xc], edi
je 0x4912b6
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4912b6
push str.jcqgx.ini
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
add edi, 0x24
push edi
call fcn.00432365
push dword [edi]
lea eax, [ebp - 0x10]
call fcn.004824b8
test eax, eax
mov eax, dword [ebp - 0x10]
pop ecx
jne 0x4912a1
add eax, 0xfffffff0
jmp 0x4912b9
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [esi - 0x10]
call fcn.004011c0
xor eax, eax
inc eax
jmp 0x4912c8
lea eax, [ebx - 0x10]
call fcn.004011c0
lea eax, [esi - 0x10]
call fcn.004011c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x491bc2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5993a2
call fcn.00596170
sub esp, 0x260
push ebx
push esi
push edi
push 0x5e7264
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov edi, ecx
mov dword [ebp - 0x20], esi
call fcn.0043238b
mov dword [ebp - 4], esi
call fcn.0044fac0
movzx eax, byte [eax + 0x20]
mov dword [ebp - 0x14], esi
cmp eax, esi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
je 0x491c27
cmp dword [edi + 0x14], esi
jne 0x491c27
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x10]
push edx
push 0x20119
push esi
push eax
push ecx
mov dword [ebp - 0x10], esi
call ebx
cmp eax, esi
je 0x491c46
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x10]
push edx
push 0x20219
push esi
push eax
push ecx
mov dword [ebp - 0x10], esi
call ebx
cmp eax, esi
jne 0x491ced
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x61c924]
mov ecx, 0x61c924
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x208
lea eax, [ebp - 0x26a]
mov byte [ebp - 4], 2
push esi
push eax
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x26c], si
call fcn.0049cee0
mov edi, dword [edi + 0xc]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x491d77
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x491d3e
cmp eax, 2
je 0x491d3e
cmp eax, 7
je 0x491d3e
cmp eax, 4
jne 0x491d12
push 0xa
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x26c]
call fcn.004a4cef
lea eax, [ebp - 0x60]
push eax
call fcn.0049cde3
add esp, 0x14
lea ecx, [ebp - 0x60]
jmp 0x491d51
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401367
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
jmp 0x491dbf
cmp eax, 0xb
jne 0x491d5c
push 0xa
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
call fcn.004a4e17
lea eax, [ebp - 0x60]
push eax
call fcn.0049cde3
add esp, 0x18
jmp 0x491ce8
lea eax, [ebp - 0x26c]
push eax
call fcn.0049cde3
pop ecx
lea ecx, [ebp - 0x26c]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.00401400
lea ecx, [ebp - 0x10]
call fcn.00482a5e
lea ecx, [ebp - 0x10]
call fcn.00482b4a
lea eax, [ebp - 0x10]
lea edi, [ebp - 0x18]
call fcn.004013bf
cmp dword [ebp - 0x14], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x491d8a
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401367
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011c0
cmp dword [ebp - 0x14], esi
je 0x491db2
push dword [ebp - 0x14]
call edi
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4967b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [esi], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [edi], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x496841
push eax
call fcn.0049b658
pop ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 4], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x496833
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5e7df4
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x496833
cmp dword [ebp - 0xc], ebx
je 0x496833
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], ebx
je 0x496841
push dword [ebp - 4]
call fcn.0049cf5a
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x49687d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x5981ee
call fcn.00596170
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x61c924
mov dword [ebp - 0x10], edi
call fcn.004014c8
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0049cee0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00432365
push esi
call fcn.004814f7
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4969d8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0049cee0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x496a31
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x496ae7
mov eax, dword [ebp - 0x94]
dec eax
je 0x496ad3
dec eax
jne 0x496ae7
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x496a80
cmp dword [ebp - 0x9c], edx
jne 0x496a6a
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x496acf
cmp dword [ebp - 0x9c], edi
jne 0x496ab8
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x496acf
cmp eax, 5
jne 0x496aaa
cmp dword [ebp - 0x9c], 2
jne 0x496a91
push eax
jmp 0x496ab1
cmp dword [ebp - 0x9c], 1
jne 0x496a9e
mov edi, ecx
jmp 0x496ae7
cmp dword [ebp - 0x9c], edi
jne 0x496ae7
push 3
jmp 0x496ab1
cmp eax, 4
ja 0x496ab4
push 4
pop edi
jmp 0x496ae7
cmp eax, ecx
jb 0x496ae7
cmp dword [ebp - 0x9c], 2
jae 0x496ac5
cmp eax, ecx
jbe 0x496ae7
cmp byte [ebp + 0x76], dl
jne 0x496ae7
call fcn.00496900
mov edi, eax
jmp 0x496ae7
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x496fdd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x496ff6
mov eax, dword [ebp - 4]
jmp 0x4970d0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4970ab
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5eb3c0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5eb3c0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5eb3c0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5eb3c0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5eb3c0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5eb3c0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5eb3c0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5eb3c0]
dec ebp
jne 0x497015
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4970c7
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x5eb3c0]
dec ecx
jne 0x4970b5
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x497105
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4971b0
push edi
push 1
push esi
call fcn.0049f041
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4971ad
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4971a6
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ef538
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4971a6
cmp dword [ebp - 4], 0
je 0x4971a6
push 0x14
call fcn.00465fbb
mov esi, eax
test esi, esi
pop ecx
je 0x4971ad
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 0xc], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
and dword [eax], 0
push eax
push 0x5e7df4
push edi
mov dword [esi], vtable.cf::FileVersionInfo.0
mov dword [esi + 4], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x4971af
push edi
call fcn.0049daa8
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4973a3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, ecx
mov ax, word [esi + 8]
mov word [ebp - 0x14], ax
mov ax, word [esi + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x12], ax
call edi
mov word [ebp - 0x10], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0xe], ax
mov ax, word [esi + 8]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call edi
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor edi, edi
mov ebx, 0x104
movzx eax, word [ebp + edi*2 - 0x14]
movzx ecx, word [ebp + edi*2 - 0x12]
push dword [ebp + 8]
inc edi
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push ebx
lea eax, [ebp - 0x220]
push ebx
push eax
inc edi
call fcn.0049ce15
and dword [ebp - 4], 0
add esp, 0x1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [esi + 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x497448
cmp dword [ebp - 4], 0
jne 0x497456
cmp edi, 8
jb 0x4973f6
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov esi, dword [ebp - 4]
push esi
call fcn.0049cde3
pop ecx
mov ecx, esi
mov esi, dword [ebp + 0xc]
call fcn.0041def3
mov al, 1
jmp 0x49744f
Function at 0x497522
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4975c8
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 8], ebx
mov edi, eax
jne 0x4975b3
cmp edi, 0x200000
ja 0x4975b3
lea eax, [edi + 2]
push eax
call fcn.0049b658
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4975b3
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x4975b3
mov byte [eax + esi], bl
mov eax, dword [ebp - 4]
mov byte [eax + esi + 1], bl
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor esi, esi
mov dword [ebp - 0xc], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x4975c8
push esi
call fcn.0049cf5a
pop ecx
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 0xc
Function at 0x499cc0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x59af50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x60c1e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x499e9d
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x499e9d
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x499e9d
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x499e90
test edi, edi
jbe 0x499e90
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.0049a270
push esi
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [esp + 0x1c]
call fcn.00448f40
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x48]
push eax
lea esi, [esp + 0x20]
call fcn.00495e15
cmp dword [esp + 0x24], 0
je 0x499e45
mov eax, dword [ebp]
push eax
mov eax, esi
call fcn.00494d87
test eax, eax
je 0x499dbc
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00496053
mov byte [esp + 0x40], 2
call fcn.00494d73
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00432351
mov byte [esp + 0x40], 1
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x20]
call fcn.00494d87
test eax, eax
je 0x499dfa
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x24]
call fcn.00496053
mov byte [esp + 0x40], 3
call fcn.00494d73
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00432351
mov dword [esp + 0x10], vtable.cf::BkJson::Handle.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00495dd2
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x499e30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00495dd2
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499e9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
Function at 0x49a341
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
push edi
mov dword [ebx], esi
mov dword [ebp - 4], esi
call fcn.0049a7b9
xor edi, edi
inc edi
test eax, eax
je 0x49a369
mov esi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 0xb]
call fcn.0049a812
test eax, eax
jne 0x49a38d
lea ecx, [ebp + 0xb]
call fcn.0049a840
test eax, eax
jne 0x49a38d
lea ecx, [ebp + 0xb]
call fcn.0049a86e
test eax, eax
je 0x49a390
or esi, 2
call fcn.0049a8e8
test eax, eax
je 0x49a39f
or esi, 4
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
je 0x49a3b6
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [ebx], edi
mov dword [eax], esi
jmp 0x49a4dc
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0049a9b9
test eax, eax
je 0x49a3de
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x49a4dc
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0049aa6c
test eax, eax
je 0x49a3fb
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 3
jmp 0x49a3d1
call fcn.0049ae39
test al, al
je 0x49a40b
mov eax, 0x2001
jmp 0x49a429
call fcn.0049adfe
test al, al
je 0x49a41b
mov eax, 0x2002
jmp 0x49a429
call fcn.0049ad66
test al, al
je 0x49a436
mov eax, 0x2003
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 4
jmp 0x49a3d4
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 3
call fcn.0049b00c
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0049b096
test eax, eax
je 0x49a490
mov eax, dword [ebp - 4]
test eax, eax
je 0x49a466
cmp eax, edi
je 0x49a466
cmp eax, 2
jne 0x49a490
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x49a480
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x49a4dc
cmp eax, 2
jne 0x49a4dc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x49a4dc
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49a4ac
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 6
jmp 0x49a4d6
call fcn.0049a4e2
test eax, eax
je 0x49a4c2
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 7
jmp 0x49a4d6
call fcn.0049a585
test eax, eax
je 0x49a4dc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 8
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
pop esi
leave
ret