joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ea60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 8
jb 0x46ea76
mov edx, dword [eax]
push edx
push str.AddWebpToCache__s_n
call fcn.00472280
mov eax, dword [ebp + 8]
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x46eaab
mov eax, dword [eax]
push ebx
push esi
push 0x57b030
push eax
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x46ec22
mov eax, dword [ebp - 4]
test eax, eax
je 0x46ec22
push 2
push 0
push eax
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46eafa
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
jmp 0x46ec1f
lea eax, [ebp - 0x20]
push eax
push esi
mov ecx, eax
call fcn.0046c2d0
push 0
push 0
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push esi
push dword [ebp - 0x20]
call sub.msvcrt.dll_fread
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x20]
call fcn.00537de0
mov ebx, eax
add esp, 0x30
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x46ec22
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46ec19
cmp eax, dword [ebp - 8]
jne 0x46ec19
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x46ebf9
mov edx, dword [ebp - 0xc]
push ebx
push 0x26200a
lea ecx, [edx*4]
push ecx
push dword [ebp - 8]
mov ecx, eax
push edx
call fcn.0046c6f0
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x46ebfd
mov ecx, dword [esi + 8]
mov dword [esi + 8], 0
test ecx, ecx
jne 0x46ebfd
push edi
push ecx
push ecx
push 0x10
push 0x10
mov ecx, esi
call fcn.0046fd90
push 0
push 0
push 0x20
push 0x20
mov ecx, esi
mov ebx, eax
call fcn.0046fd90
push 0
push 0
push 0x30
push 0x30
mov ecx, esi
mov edi, eax
call fcn.0046fd90
push dword [ebp - 0x10]
mov esi, eax
call fcn.004bd0e0
mov ecx, dword [ebp - 0x14]
add esp, 4
push esi
push edi
push ebx
push dword [ebp + 0xc]
call fcn.0046cc20
mov esi, dword [ebp + 8]
mov bl, al
pop edi
jmp 0x46ec0b
xor esi, esi
jmp 0x46ec00
mov esi, dword [ebp + 8]
push ebx
call fcn.004bd0e0
add esp, 4
xor bl, bl
test esi, esi
je 0x46ec24
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
jmp 0x46ec24
push ebx
call fcn.004bd0e0
add esp, 4
xor bl, bl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x46ec54
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46ec4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ec5e
push edx
push ecx
call fcn.00532e3c
add esp, 8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.0055f150
int3
Function at 0x46fd20
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push dword [ebp + 8]
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x46fd82
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 0x2b4]
test ecx, ecx
push dword [ebp - 4]
cmovg esi, ecx
call dword [sym.imp.SHELL32.dll_ILFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479270
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xorps xmm0, xmm0
lea eax, [ebp - 0x2c]
mov esi, ecx
movlpd qword [ebp - 0x24], xmm0
push eax
mov dword [ebp - 4], esi
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ebx
test eax, eax
jle 0x479383
push edi
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, dword [esi + 0x1c]
test eax, eax
je 0x4792c6
mov eax, dword [eax]
test eax, eax
je 0x4792c6
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + ebx]
test ecx, ecx
je 0x4792d7
mov ecx, dword [ecx]
test ecx, ecx
je 0x4792d7
mov eax, dword [ecx]
test eax, eax
jne 0x4792df
xor edx, edx
jmp 0x4792e1
mov edx, dword [eax]
mov eax, dword [edx + 8]
mov ecx, esi
dec eax
shr ecx, 1
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
xor edi, edi
mov eax, dword [eax + ecx*4]
lea ecx, [eax + esi*8]
mov eax, dword [eax + esi*8]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x479372
mov ebx, ecx
nop dword [eax + eax]
mov eax, dword [ebx]
xor ecx, ecx
mov edx, dword [eax + 0x74]
mov eax, dword [eax + 0x68]
test eax, eax
je 0x479326
mov eax, dword [eax]
test eax, eax
je 0x479326
mov ecx, dword [eax]
xor eax, eax
lea esi, [edx + edi]
test ecx, ecx
je 0x479337
mov ecx, dword [ecx]
test ecx, ecx
je 0x479337
mov eax, dword [ecx]
test eax, eax
jne 0x47933f
xor edx, edx
jmp 0x479341
mov edx, dword [eax]
mov eax, dword [edx + 8]
mov ecx, esi
dec eax
shr ecx, 1
and ecx, eax
and esi, 1
mov eax, dword [edx + 4]
push 0
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + esi*8]
mov esi, dword [ebp - 4]
add eax, 0x7c
push eax
mov ecx, esi
call fcn.00476460
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x479310
mov ebx, dword [ebp - 8]
jmp 0x479375
mov esi, dword [ebp - 4]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [ebp - 0x14]
jl 0x4792b2
pop edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
sbb eax, dword [ebp - 0x20]
push eax
push ecx
push str._lld_n
call fcn.00472250
add esp, 0xc
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f980
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
test bl, 2
je 0x47f9b2
push 7
push str.Ctrl_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 4
je 0x47f9c6
push 8
push str.Shift_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 1
je 0x47f9da
push 6
push str.Alt_
lea ecx, [ebp - 0x18]
call fcn.00402350
test bl, 8
pop ebx
je 0x47f9ef
push 6
push str.Win_
lea ecx, [ebp - 0x18]
call fcn.00402350
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x47faaf
push 0x80
push 0
push 0x5ba710
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ecx, eax
shl ecx, 0x10
or ecx, 1
cmp esi, 0x20
jne 0x47fa40
push str.Space
push 0x5ba710
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47fa8a
cmp esi, 5
jne 0x47fa57
push 0x57deb0
push 0x5ba710
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47fa8a
cmp esi, 6
jne 0x47fa6e
push 0x57deb8
push 0x5ba710
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x47fa8a
lea eax, [esi - 0x21]
push 0x40
push 0x5ba710
cmp eax, 0xe
ja 0x47fa83
or ecx, 0x1000000
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ecx, 0x5ba710
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fa92
sub ecx, edx
sar ecx, 1
push ecx
push 0x5ba710
lea ecx, [ebp - 0x18]
call fcn.00402350
movups xmm0, xmmword [ebp - 0x18]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor eax, eax
mov word [ebp - 0x18], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 8]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 8], eax
mov dword [ebp - 4], 7
call fcn.00403070
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4819e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
mov esi, ecx
mov byte [ebp - 1], 0
push edi
push 0x11
mov dword [esi + 0x754], 0
call ebx
mov ecx, 0x8000
and ax, cx
mov word [ebp - 4], ax
movzx eax, ax
push 0x10
mov dword [ebp - 0xc], eax
call ebx
mov di, ax
mov eax, 0x8000
push 0x12
and di, ax
call ebx
mov ecx, 0x8000
and ax, cx
push 0x5b
mov word [ebp - 6], ax
setne bl
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x481a5b
push 0x5c
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x481a5f
mov dl, 1
jmp 0x481a62
mov dl, byte [ebp - 1]
mov ecx, dword [esi + 0x750]
test ecx, ecx
je 0x481a82
cmp word [ebp - 4], 0
jne 0x481a82
test di, di
jne 0x481a82
cmp word [ebp - 6], di
jne 0x481a82
mov bl, 1
jmp 0x481a89
cmp word [ebp - 0xc], 0
je 0x481a90
or dword [esi + 0x754], 2
mov eax, dword [esi + 0x754]
test di, di
je 0x481aa4
or eax, 4
mov dword [esi + 0x754], eax
test bl, bl
je 0x481ab1
or eax, 1
mov dword [esi + 0x754], eax
test dl, dl
je 0x481abe
or eax, 8
mov dword [esi + 0x754], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047f980
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x481ae1
push 1
push 0x57e598
lea ecx, [ebp - 0x24]
call fcn.00402e60
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0044dd00
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
cmp edx, 8
jb 0x481b25
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481b1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481b29
push edx
push ecx
call fcn.00532e3c
add esp, 8
mov esp, ebp
pop ebp
ret
call fcn.0055f150
int3
Function at 0x481e80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
cmp eax, 0x70b
jne 0x482063
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
lea esi, [edi + 0x18]
push dword [edi + 0x1c]
push dword [esi]
push eax
call fcn.0044e370
cmp dword [edi + 0xc], 0x202
jne 0x481fe1
push esi
mov ecx, ebx
call fcn.0044dfd0
push dword [edi + 0x1c]
lea eax, [ebp - 0x34]
mov ecx, ebx
push dword [esi]
push eax
call fcn.0044e370
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401570
mov esi, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
add esp, 8
cmp dword [ebp - 8], 8
cmovae edi, dword [ebp - 0x1c]
test esi, esi
je 0x481f9d
push 0x100
lea eax, [ebp - 0x164]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x164]
push 0x57e366
push str.file:
call fcn.00453160
mov ecx, edi
test al, al
jne 0x481f78
lea ebx, [edi + esi*2]
cmp edi, ebx
jae 0x481f64
nop word [eax + eax]
movzx esi, word [ecx]
mov edx, 5
mov eax, str.file:
nop dword [eax]
cmp word [eax], si
je 0x481f6f
add eax, 2
sub edx, 1
jne 0x481f50
add ecx, 2
cmp ecx, ebx
jb 0x481f40
mov ebx, dword [ebp - 4]
or ecx, 0xffffffff
jmp 0x481ff6
mov ebx, dword [ebp - 4]
sub ecx, edi
sar ecx, 1
jmp 0x481ff6
lea edx, [edi + esi*2]
cmp edi, edx
jae 0x481f9d
mov esi, 0x100
movzx eax, word [ecx]
cmp ax, si
jae 0x481f96
cmp byte [ebp + eax - 0x164], 0
jne 0x481ff2
add ecx, 2
cmp ecx, edx
jb 0x481f84
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 1
cmovae eax, dword [ebp - 0x34]
push 0x595304
push 0x595304
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov eax, dword [eax + 0x1c]
push eax
push eax
call fcn.0044e030
lea ecx, [ebp - 0x1c]
call fcn.00403070
lea ecx, [ebp - 0x34]
call fcn.00403070
lea ecx, [ebp - 0x64]
call fcn.00403070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
sub ecx, edi
sar ecx, 1
test ecx, ecx
jne 0x481f9d
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
add eax, 0xa
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x482015
cmp ecx, 0x2f
jne 0x48201a
add eax, 2
jmp 0x482008
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402fa0
lea eax, [ebp - 0x4c]
push eax
call fcn.0046f800
add esp, 0x1c
lea eax, [ebp - 0x4c]
cmp dword [ebp - 0x38], 8
cmovae eax, dword [ebp - 0x4c]
push 1
push 0x595304
push 0x595304
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x4c]
call fcn.00403070
jmp 0x481fc2
push dword [ebp + 0xc]
push eax
call fcn.0044e7f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48af00
Capabilities:
Create shortcut via ishelllink
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
lea eax, [ebp - 4]
push eax
push 0x58e404
push 1
push 0
push 0x58e454
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x48b074
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [esi]
call fcn.0048c560
cmp dword [eax + 0x14], 8
jb 0x48af40
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0xac], 0
jbe 0x48af84
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0048c910
cmp dword [eax + 0x14], 8
jb 0x48af70
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
lea ecx, [ebp - 0x1c]
call fcn.00403070
mov eax, dword [esi]
cmp dword [eax + 0x94], 0
jbe 0x48afaa
cmp dword [eax + 0x98], 8
lea edx, [eax + 0x84]
jb 0x48af9e
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esi]
cmp dword [eax + 0xec], 0
jbe 0x48afce
cmp dword [eax + 0xf0], 8
lea edx, [eax + 0xdc]
jb 0x48afc4
mov edx, dword [edx]
mov eax, dword [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
lea edx, [ebp + 8]
push edx
push 0x58e474
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x48b062
push 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x595308
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [esi]
add esp, 0xc
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x48b01c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
push str..lnk
lea eax, [ebp - 0x224]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x224]
add esp, 0x18
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x48c420
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5ba448]
sub esp, 0x2b8
test eax, eax
jne 0x48c4fd
push esi
xor esi, esi
push esi
push esi
push 6
call fcn.0040f470
add esp, 0xc
test al, al
je 0x48c495
mov eax, dword [0x5ba444]
test eax, eax
jne 0x48c472
push str.SHGetStockIconInfo
push str.shell32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5ba444], eax
test eax, eax
je 0x48c495
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x218
push ecx
push 0x4000
push 3
call eax
test eax, eax
cmove esi, dword [ebp - 0x214]
mov dword [0x5ba448], esi
test esi, esi
jne 0x48c4fa
lea eax, [ebp - 4]
push eax
push 0x25
push esi
call sub.SHELL32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], esi
je 0x48c4f4
push 0x2b4
lea eax, [ebp - 0x2b8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b8]
push 0x4008
push 0x2b4
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2b4]
test eax, eax
push dword [ebp - 4]
cmovg esi, eax
call dword [sym.imp.SHELL32.dll_ILFree]
mov dword [0x5ba448], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48efa0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
Function at 0x4958c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
cmp esi, 0xffffffff
je 0x495901
test esi, 0x10
jne 0x495901
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x495a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x57b030
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov ebx, ecx
call sub.msvcrt.dll__wfopen_s
add esp, 0xc
test eax, eax
jne 0x495c33
push dword [ebp - 4]
push 1
push 0x4c
push ebx
call sub.msvcrt.dll_fread
add esp, 0x10
cmp dword [ebx], 0x4c
jne 0x495c33
mov eax, dword [ebx + 0x14]
test al, 1
je 0x495b0d
push dword [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 1
push 2
push eax
call sub.msvcrt.dll_fread
movzx eax, word [ebp + 8]
push 1
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
mov eax, dword [ebx + 0x14]
add esp, 0x1c
test al, 2
je 0x495c1d
push dword [ebp - 4]
call sub.msvcrt.dll_ftell
push dword [ebp - 4]
lea esi, [ebx + 0x4c]
mov edi, eax
push 1
push 8
push esi
call sub.msvcrt.dll_fread
mov eax, dword [ebx + 0x50]
add esp, 0x14
sub eax, 0x1c
cmp eax, 8
ja 0x495c33
push 1
push 0xfffffffffffffff8
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
push dword [ebp - 4]
push 1
push dword [ebx + 0x50]
push esi
call sub.msvcrt.dll_fread
add esp, 0x1c
test byte [ebx + 0x54], 1
je 0x495c0b
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x5c]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0x18
xor edi, edi
push dword [ebp - 4]
lea esi, [ebp - 0x108]
push 1
add esi, edi
push 1
push esi
call sub.msvcrt.dll_fread
add esp, 0x10
cmp byte [esi], 0
je 0x495bb6
inc edi
cmp edi, 0x104
jl 0x495b90
cmp edi, 0x104
je 0x495c33
lea ecx, [ebp - 0x108]
mov byte [ebp + edi - 0x108], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x495bd0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
lea ecx, [ebx + 0x9c]
call fcn.004027c0
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
cmp dword [ebx + 0xac], eax
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
push 0
add eax, edi
push eax
push dword [ebp - 4]
call sub.msvcrt.dll_fseek
add esp, 0xc
push dword [ebp - 4]
call sub.msvcrt.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x495c43
push eax
call sub.msvcrt.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x499a90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
movzx esi, di
shr edi, 0x10
call fcn.0047a9c0
mov eax, dword [eax + 0x4c]
mov dword [ebp - 4], eax
call fcn.0047a9c0
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xc8]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x499afa
mov eax, ecx
shr eax, 8
movzx eax, al
cmp esi, eax
jne 0x499af7
movzx eax, cl
cmp edi, eax
jne 0x499af7
mov ecx, ebx
call fcn.0048ad10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x499b51
cmp esi, eax
jne 0x499b51
cmp edi, dword [ebp - 0xc]
jne 0x499b51
mov ecx, dword [ebx + 0x1124]
test ecx, ecx
je 0x499b51
push 0
call fcn.0043a7a0
mov ecx, dword [ebx + 0x1124]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x1124]
call fcn.004237c0
push eax
call fcn.004a4ac0
mov ecx, dword [ebx + 0x1124]
add esp, 4
call fcn.004a4cc0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
shl esi, 8
lea eax, [ebp - 0x10]
or esi, edi
push esi
push eax
call fcn.0047a7f0
mov ecx, eax
call fcn.0048c190
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
test eax, eax
je 0x499bec
push 0
push 0
push eax
push 0x4a53e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x10c]
lea eax, [ebp - 0x10]
push eax
call fcn.0047a8e0
mov ecx, eax
call fcn.0047b850
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea ecx, [ecx + 8]
call fcn.0040abf0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 1
jne 0x499bc6
push 0
mov ecx, ebx
call fcn.0049f630
mov esi, dword [ebp - 4]
test esi, esi
je 0x499bec
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x499bec
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x499bec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x499c11
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x499c11
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x499c11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a4ac0
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
xor al, al
push edi
push ebx
mov byte [ebp - 1], al
call dword [sym.imp.USER32.dll_IsHungAppWindow]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test eax, eax
setne byte [ebp - 2]
call edi
push 0
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a4b0c
push 0
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp - 2], 0
jne 0x4a4ba9
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 8], 0
call esi
cmp ebx, eax
je 0x4a4b9e
call edi
push 0
mov edi, eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
mov esi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 3
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
test eax, eax
push esi
push edi
setne byte [ebp - 1]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
inc edi
mov dword [ebp - 8], edi
cmp edi, 0xa
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jl 0x4a4b24
movzx eax, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
pop edi
setne al
movzx eax, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aaf10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4aaf41
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4aaf30
pop edi
mov eax, esi
pop esi
pop ebp
ret 8