joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fc74
Capabilities:
Create thread

Disassembly:
push 0x18
call fcn.004661b9
pop ecx
xor ecx, ecx
cmp eax, ecx
jne 0x48fc85
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 0x48c230
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
push ecx
push ecx
mov dword [eax + 0xc], edx
call fcn.004a0c6a
add esp, 0x18
ret

Function at 0x48ff98
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.0049c520
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x48ffdf
xor eax, eax
inc eax
leave
ret
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5f1f94
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.0043264d
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x490028
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011c0
jmp 0x48ffda
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 0x490054
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011c0
mov eax, esi
pop esi
leave
ret
xor esi, esi
jmp 0x490044

Function at 0x4901a3
Capabilities:
Delete file

Disassembly:
mov eax, 0x59a682
call fcn.00595790
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 [0x61b884]
mov ecx, 0x61b884
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.00482b73
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.00484de6
mov ecx, dword [ebp + 8]
add esp, 0x14
xor edi, edi
test eax, eax
mov dword [ecx], eax
je 0x490230
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 0x49020f
Function at 0x490274
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x59a682
call fcn.00595790
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.00482b73
pop ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4902c4
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 [0x61b884]
mov ecx, 0x61b884
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.004325c8
mov ebx, dword [ebp - 0x10]
mov esi, dword [esi]
push 0xffffffffffffffff
push ebx
push esi
xor ecx, ecx
call fcn.00481bbf
add esp, 0x14
xor esi, esi
test eax, eax
jne 0x490317
lea eax, [ebx - 0x10]
call fcn.004011c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x4902b4
inc esi
jmp 0x490304

Function at 0x49031a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x59a668
call fcn.00595790
sub esp, 0x214
mov eax, dword [0x61b884]
push ebx
push esi
mov esi, 0x61b884
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 [0x61b884]
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.0049c520
add esp, 0xc
push edi
call fcn.0049f3a8
pop ecx
push edx
push eax
push str.http:__2398.35go.net_defend_o1_jcqgx.ini
lea eax, [ebp - 0x14]
call fcn.00426983
mov esi, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.004333cb
test eax, eax
mov ebx, dword [ebp - 0x10]
pop ecx
pop ecx
jne 0x490412
cmp dword [ebx - 0xc], edi
je 0x490412
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x490412
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.00432627
push dword [edi]
lea eax, [ebp - 0x10]
call fcn.004815bc
test eax, eax
mov eax, dword [ebp - 0x10]
pop ecx
jne 0x4903fd
add eax, 0xfffffff0
jmp 0x490415
add eax, 0xfffffff0
call fcn.004011c0
lea eax, [esi - 0x10]
call fcn.004011c0
xor eax, eax
inc eax
jmp 0x490424
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 0x490d1e
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x598802
call fcn.00595790
sub esp, 0x260
push ebx
push esi
push edi
push 0x5e616c
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov edi, ecx
mov dword [ebp - 0x20], esi
call fcn.0043264d
mov dword [ebp - 4], esi
call fcn.0045015b
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 0x490d83
cmp dword [edi + 0x14], esi
jne 0x490d83
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 0x490da2
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 0x490e49
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x61b884]
mov ecx, 0x61b884
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.0049c520
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 0x490ed3
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x490e9a
cmp eax, 2
je 0x490e9a
cmp eax, 7
je 0x490e9a
cmp eax, 4
jne 0x490e6e
push 0xa
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x26c]
call fcn.004a432f
lea eax, [ebp - 0x60]
push eax
call fcn.0049c423
add esp, 0x14
lea ecx, [ebp - 0x60]
jmp 0x490ead
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 0x490f1b
cmp eax, 0xb
jne 0x490eb8
push 0xa
push 0x20
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x268]
push dword [ebp - 0x26c]
call fcn.004a4457
lea eax, [ebp - 0x60]
push eax
call fcn.0049c423
add esp, 0x18
jmp 0x490e44
lea eax, [ebp - 0x26c]
push eax
call fcn.0049c423
pop ecx
lea ecx, [ebp - 0x26c]
mov ebx, eax
push ecx
lea eax, [ebp - 0x10]
call fcn.00401400
lea ecx, [ebp - 0x10]
call fcn.00481ccf
lea ecx, [ebp - 0x10]
call fcn.00481dbb
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 0x490ee6
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 0x490f0e
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 0x495930
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 0x4959b9
push eax
call fcn.0049ac98
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 0x4959ab
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5e6cfc
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4959ab
cmp dword [ebp - 0xc], ebx
je 0x4959ab
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 0x4959b9
push dword [ebp - 4]
call fcn.0049c59a
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x495a89
Capabilities:
Get common file path

Disassembly:
mov eax, 0x596a38
call fcn.00595790
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x61b884
mov dword [ebp - 0x10], edi
call fcn.0043033f
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.0049c520
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.00432627
push esi
call fcn.004959f5
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x495be4
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.0049c520
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 0x495c3d
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x495cf3
mov eax, dword [ebp - 0x94]
dec eax
je 0x495cdf
dec eax
jne 0x495cf3
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x495c8c
cmp dword [ebp - 0x9c], edx
jne 0x495c76
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x495cdb
cmp dword [ebp - 0x9c], edi
jne 0x495cc4
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x495cdb
cmp eax, 5
jne 0x495cb6
cmp dword [ebp - 0x9c], 2
jne 0x495c9d
push eax
jmp 0x495cbd
cmp dword [ebp - 0x9c], 1
jne 0x495caa
mov edi, ecx
jmp 0x495cf3
cmp dword [ebp - 0x9c], edi
jne 0x495cf3
push 3
jmp 0x495cbd
cmp eax, 4
ja 0x495cc0
push 4
pop edi
jmp 0x495cf3
cmp eax, ecx
jb 0x495cf3
cmp dword [ebp - 0x9c], 2
jae 0x495cd1
cmp eax, ecx
jbe 0x495cf3
cmp byte [ebp + 0x76], dl
jne 0x495cf3
call fcn.00495b0c
mov edi, eax
jmp 0x495cf3
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 0x495fdb
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 0x495ff4
mov eax, dword [ebp - 4]
jmp 0x4960ce
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 0x4960a9
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 + 0x5ea3d0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5ea3d0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5ea3d0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5ea3d0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5ea3d0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x5ea3d0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x5ea3d0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x5ea3d0]
dec ebp
jne 0x496013
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4960c5
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x5ea3d0]
dec ecx
jne 0x4960b3
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x496103
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 0x4961ae
push edi
push 1
push esi
call fcn.0049e681
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4961ab
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4961a4
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ee568
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4961a4
cmp dword [ebp - 4], 0
je 0x4961a4
push 0x14
call fcn.004661b9
mov esi, eax
test esi, esi
pop ecx
je 0x4961ab
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 0x5e6cfc
push edi
mov dword [esi], vtable.cf::FileVersionInfo.0
mov dword [esi + 4], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x4961ad
push edi
call fcn.0049d0e8
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4963a1
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.0049c455
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 0x496446
cmp dword [ebp - 4], 0
jne 0x496454
cmp edi, 8
jb 0x4963f4
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov esi, dword [ebp - 4]
push esi
call fcn.0049c423
pop ecx
mov ecx, esi
mov esi, dword [ebp + 0xc]
call fcn.0041e280
mov al, 1
jmp 0x49644d
Function at 0x496520
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 0x4965c6
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 0x4965b1
cmp edi, 0x200000
ja 0x4965b1
lea eax, [edi + 2]
push eax
call fcn.0049ac98
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 0x4965b1
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x4965b1
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 0x4965c6
push esi
call fcn.0049c59a
pop ecx
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret 0xc
Function at 0x499300
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x59a580
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x60b1e0]
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 0x4994dd
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x4994dd
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4994dd
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 0x4994d0
test edi, edi
jbe 0x4994d0
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.004998b0
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.00449729
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x48]
push eax
lea esi, [esp + 0x20]
call fcn.00494f8d
cmp dword [esp + 0x24], 0
je 0x499485
mov eax, dword [ebp]
push eax
mov eax, esi
call fcn.00493eff
test eax, eax
je 0x4993fc
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004951cb
mov byte [esp + 0x40], 2
call fcn.00493eeb
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00432613
mov byte [esp + 0x40], 1
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x20]
call fcn.00493eff
test eax, eax
je 0x49943a
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x24]
call fcn.004951cb
mov byte [esp + 0x40], 3
call fcn.00493eeb
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00432613
mov dword [esp + 0x10], vtable.cf::BkJson::Handle.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00494f4a
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 0x499470
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.00494f4a
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 0x4994dd
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 0x499981
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.00499df9
xor edi, edi
inc edi
test eax, eax
je 0x4999a9
mov esi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 0xb]
call fcn.00499e52
test eax, eax
jne 0x4999cd
lea ecx, [ebp + 0xb]
call fcn.00499e80
test eax, eax
jne 0x4999cd
lea ecx, [ebp + 0xb]
call fcn.00499eae
test eax, eax
je 0x4999d0
or esi, 2
call fcn.00499f28
test eax, eax
je 0x4999df
or esi, 4
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
je 0x4999f6
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [ebx], edi
mov dword [eax], esi
jmp 0x499b1c
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00499ff9
test eax, eax
je 0x499a1e
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 0x499b1c
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.0049a0ac
test eax, eax
je 0x499a3b
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 3
jmp 0x499a11
call fcn.0049a479
test al, al
je 0x499a4b
mov eax, 0x2001
jmp 0x499a69
call fcn.0049a43e
test al, al
je 0x499a5b
mov eax, 0x2002
jmp 0x499a69
call fcn.0049a3a6
test al, al
je 0x499a76
mov eax, 0x2003
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 4
jmp 0x499a14
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 3
call fcn.0049a64c
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0049a6d6
test eax, eax
je 0x499ad0
mov eax, dword [ebp - 4]
test eax, eax
je 0x499aa6
cmp eax, edi
je 0x499aa6
cmp eax, 2
jne 0x499ad0
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x499ac0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x499b1c
cmp eax, 2
jne 0x499b1c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x499b1c
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x499aec
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 6
jmp 0x499b16
call fcn.00499b22
test eax, eax
je 0x499b02
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 7
jmp 0x499b16
call fcn.00499bc5
test eax, eax
je 0x499b1c
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