joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c2040
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0x96]
push ebp
lea esi, [edi + 0x16]
cmp eax, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x5c2153
mov eax, dword [esp + 0x30]
push esi
push eax
push 0
call fcn.005bdf60
add esp, 0x10
test eax, eax
je 0x5c208d
mov eax, dword [ebp + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
pop ebp
add eax, 0x13
pop ebx
pop ecx
ret
lea ecx, [esi + 1]
push ecx
call fcn.005ce37a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5c223c
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x5c20d9
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x5c20e6
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x5c211b
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push 0
push eax
mov edx, dword [ecx]
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c213f
cmp dword [esp + 0x24], esi
je 0x5c222b
push ebx
call fcn.005ce291
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call fcn.005be6f0
add esp, 4
cmp eax, esi
jge 0x5c2175
mov eax, dword [esp + 0x2c]
push ebp
push eax
call fcn.005be730
add esp, 8
test eax, eax
jne 0x5c2241
lea ecx, [esi + 1]
push ecx
call fcn.005ce37a
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5c223c
mov eax, dword [esp + 0x18]
mov dword [ebx], 0x6054b50
test byte [ebp + 0xdf1], 0x80
je 0x5c21c1
mov dx, word [ebp + 0xdf2]
mov word [ebx + 4], dx
mov cx, word [ebp + 0xdf4]
mov word [ebx + 6], cx
mov dx, word [ebp + 0xdfa]
mov word [ebx + 8], dx
jmp 0x5c21ce
lea ecx, [ebx + 4]
mov dword [ecx], 0
mov word [ebx + 8], ax
mov edx, dword [esp + 0x1c]
mov word [ebx + 0xa], ax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], edx
test edi, edi
mov dword [ebx + 0x10], eax
mov word [ebx + 0x14], di
je 0x5c2203
mov esi, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 0x16]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x96]
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c213f
cmp dword [esp + 0x24], esi
jne 0x5c213f
push ebx
call fcn.005ce291
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c2270
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], 0
mov esi, dword [edi + 0xdbc]
test esi, esi
je 0x5c242c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esi + 0x4a], 0
jne 0x5c22b1
cmp word [esi + 0x4c], 0
je 0x5c232b
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x46]
mov word [esi + 0x4a], 1
cmp byte [eax + ecx - 1], 0x2f
je 0x5c2327
mov edx, dword [esi + 0x36]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
call fcn.005b9440
add esp, 4
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [edi + 0xd9c]
test eax, eax
jne 0x5c232b
mov eax, dword [esi + 0x36]
push eax
call fcn.005c2250
mov ecx, dword [esi + 0x46]
push ecx
call fcn.005c2250
mov eax, dword [esi + 0x46]
add esp, 8
cmp byte [eax], 0
je 0x5c2316
push 0x672d20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esi + 0x46]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esi + 0x18], eax
jbe 0x5c232b
inc dword [esp + 0x10]
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x5c22a3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c242c
shl eax, 2
push eax
call fcn.005ce37a
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x5c2368
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x108
ret
mov esi, dword [edi + 0xdbc]
xor ebx, ebx
test esi, esi
je 0x5c23b1
mov edi, ebp
cmp word [esi + 0x4a], 0
je 0x5c23aa
mov ecx, dword [esi + 0x18]
test ecx, ecx
jbe 0x5c23aa
mov eax, dword [esi + 0x46]
cmp byte [ecx + eax - 1], 0x2f
jne 0x5c23aa
test ebx, ebx
je 0x5c23a4
mov ecx, dword [edi - 4]
mov edx, dword [ecx + 0x46]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x5c23aa
mov dword [edi], esi
inc ebx
add edi, 4
mov esi, dword [esi + 0x4e]
test esi, esi
jne 0x5c2376
push 0x5bfef0
push 4
push ebx
push ebp
call fcn.005d1503
add esp, 0x10
xor ebp, ebp
test ebx, ebx
jbe 0x5c241f
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 0x36]
cmp byte [esi], 0
je 0x5c2417
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x2f
jne 0x5c23f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi - 1], 0
test ebp, ebp
je 0x5c240b
mov ecx, dword [edi - 4]
mov eax, dword [edi]
mov edx, dword [ecx + 0x46]
mov ecx, dword [eax + 0x46]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x5c2417
mov edx, dword [edi]
mov eax, dword [edx + 0x36]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
inc ebp
add edi, 4
cmp ebp, ebx
jb 0x5c23cc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005ce291
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x5c2460
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov edx, dword [ecx + 0x3e]
mov eax, edx
xor eax, esi
and eax, 0xff
shr edx, 8
mov eax, dword [eax*4 + 0x69a6c8]
xor eax, edx
mov edx, dword [ecx + 0x42]
mov dword [ecx + 0x3e], eax
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 0x46]
imul eax, eax, 0x8088405
inc eax
mov esi, edx
mov dword [ecx + 0x42], eax
and esi, 0xff
shr eax, 0x18
xor eax, esi
pop esi
shr edx, 8
mov eax, dword [eax*4 + 0x69a6c8]
xor eax, edx
mov dword [ecx + 0x46], eax
ret
Function at 0x5c2fd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
cmp eax, 1
push edi
mov ebx, eax
jge 0x5c2fe4
mov ebx, 1
cmp eax, 9
jle 0x5c2fee
mov ebx, 9
mov esi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esi + 0x56]
mov dword [esi + 0x5e], ebp
cmp eax, ebp
jne 0x5c300c
mov dword [esi + 0x5e], 1
mov dword [esi + 0x56], 0x10000
cmp dword [esi + 0x4a], ebp
jne 0x5c3041
push 2
push 0x8000
call fcn.005d2eb5
add esp, 8
cmp eax, ebp
mov dword [esi + 0x4a], eax
jne 0x5c3041
push esi
push ebp
push 0x17c
call fcn.005be950
add esp, 8
push eax
push 4
call fcn.005ba000
add esp, 0xc
cmp dword [esi + 0x4e], ebp
jne 0x5c308c
push 2
push 0x8000
call fcn.005d2eb5
push 2
push 0x4000
mov dword [esi + 0x4e], eax
call fcn.005d2eb5
mov ecx, dword [esi + 0x4e]
add esp, 0x10
cmp ecx, ebp
mov dword [esi + 0x52], eax
je 0x5c3072
cmp eax, ebp
jne 0x5c308c
push esi
push ebp
push 0x186
call fcn.005be950
add esp, 8
push eax
push 4
call fcn.005ba000
add esp, 0xc
mov eax, dword [esi + 0x52]
mov ecx, 0x1fff
xor edx, edx
mov word [eax + 0x7ffe], bp
mov edi, dword [esi + 0x52]
xor eax, eax
rep stosd dword es:[edi], eax
xor ecx, ecx
stosw word es:[edi], ax
mov cx, word [ebx*8 + 0x69a422]
xor eax, eax
mov dword [esi + 0x7e], ecx
mov dx, word [ebx*8 + 0x69a420]
mov dword [esi + 0x82], edx
mov ax, word [ebx*8 + 0x69a424]
xor ecx, ecx
mov dword [esi + 0x86], eax
mov cx, word [ebx*8 + 0x69a426]
cmp ebx, 1
mov dword [esi + 0x7a], ecx
jne 0x5c30ec
mov eax, dword [esp + 0x18]
or byte [eax], 4
jmp 0x5c30f8
cmp ebx, 9
jne 0x5c30f8
mov eax, dword [esp + 0x18]
or byte [eax], 2
mov edx, dword [esi + 0x4a]
push esi
push 0x8000
push edx
mov dword [esi + 0x6a], ebp
mov dword [esi + 0x5a], ebp
call dword [esi + 0x3f3a]
add esp, 0xc
cmp eax, ebp
mov dword [esi + 0x76], eax
jne 0x5c3127
mov dword [esi + 0x72], 1
mov dword [esi + 0x76], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, 0x106
mov dword [esi + 0x72], ebp
cmp eax, edi
jae 0x5c3148
cmp dword [esi + 0x72], ebp
jne 0x5c3148
push esi
call fcn.005c3320
mov eax, dword [esi + 0x76]
add esp, 4
cmp eax, edi
jb 0x5c3133
mov ecx, dword [esi + 0x4a]
mov dword [esi + 0x62], ebp
xor eax, eax
mov edi, dword [esi + 0x62]
xor edx, edx
mov dl, byte [ecx + eax]
and edi, 0x1ff
and edx, 0x3fff
shl edi, 5
xor edx, edi
inc eax
cmp eax, 2
mov dword [esi + 0x62], edx
jb 0x5c3150
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5ce4b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5ce4d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005d3747
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5ce4f7
test byte [esp + 8], 2
je 0x5ce4f7
call fcn.005d37ba
mov dword [eax], 0xd
call fcn.005d37c3
mov dword [eax], 5
jmp 0x5ce4d0
xor eax, eax
ret
Function at 0x5e6370
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005cf280
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5e643b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5e643b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5e63ee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5e63f9
or bh, 8
and edi, 0x8000000
je 0x5e6414
mov eax, dword [0x6ef1dc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5e643b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5e6810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5e683b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5e685f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x5e687a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x5ec631
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5ec669
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005eb59c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005eb574
jmp 0x5ec675
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5ee00d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5ee04f
call fcn.005fb8cb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5ee04f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5ee046
xor eax, eax
jmp 0x5ee057
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005ee05d
pop edi
pop esi
pop ebx
ret 4

Function at 0x5f024d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5f026f
cmp dword [edi + 0x3c], 0
jne 0x5f026f
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005fb8cb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005f029c
pop edi
pop esi
pop ebx
ret 8
Function at 0x5f0e4f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x5f0e7f
push edi
call ebx
push eax
call fcn.005ef18b
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x5f0ea9
test byte [ebp - 4], 1
je 0x5f0ea9
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5f0ea9
push edi
call ebx
push eax
call fcn.005ef18b
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x5f0f4f
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.005f0d9c
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x5f0edb
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.005f0d9c
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x5f0ef1
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.005f0d9c
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5f0f1b
push 0
call ebx
push eax
call fcn.005ef18b
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x5f0f39
push eax
call ebx
push eax
call fcn.005ef18b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x5f0f4d
push eax
call ebx
push eax
call fcn.005ef18b
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x5f0f76
test byte [ebp - 4], 1
jne 0x5f0f76
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x5f0f76
push edi
call ebx
push eax
call fcn.005ef18b
pop edi
pop ebx
leave
ret 8
Function at 0x5fa2f1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x61927f
call fcn.005d1d1c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005f152e
mov eax, dword [0x69c108]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x6dbae0
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.005fa175
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.005eb27e
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.005c68e7
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.005eb22e
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.005eb0f5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x5fc377
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5fc3a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5fc3c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005fc2dd
jmp 0x5fc3c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5fc3c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005fc2dd
test edi, edi
mov eax, edi
jne 0x5fc3ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5ff922
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5ff94a
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5ff95b
push 2
call edi
test ax, ax
jge 0x5ff95b
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005ebc1f
cmp dword [esi + 0x30], ebx
jne 0x5ffa35
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005ebc1f
cmp eax, dword [esp + 0x34]
jne 0x5ffa35
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5ff9d1
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5ffa16
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5ffa35
cmp eax, 0x205
je 0x5ffa35
cmp eax, 0x201
je 0x5ffa35
cmp eax, 0x204
je 0x5ffa35
cmp eax, ebx
jne 0x5ff9fc
cmp dword [esp + 0x1c], 0x1b
je 0x5ffa35
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6dbb5c]
jbe 0x5ffa2b
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5ff98e
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x402d00
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [0x41a424], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.V98Pro
call edi
movq xmm0, qword [0x41608c]
mov eax, dword [0x416094]
movq qword [0x41a468], xmm0
movups xmm0, xmmword [0x416074]
push 0x41a468
push 1
movups xmmword [0x41a474], xmm0
push 0
movq xmm0, qword [0x416084]
mov dword [0x41a470], eax
movq qword [0x41a484], xmm0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x402d8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402ecc
movups xmm0, xmmword [0x416074]
mov ecx, dword [0x416094]
movq xmm1, qword [0x41608c]
movups xmmword [0x41a874], xmm0
push str.4695579F_999A_41d4_9FAF_EFFCE93EBE19
movq xmm0, qword [0x416084]
movq qword [0x41a884], xmm0
movups xmm0, xmmword [0x41605c]
mov dword [0x41a870], ecx
movq qword [0x41a868], xmm1
movups xmmword [0x41a674], xmm0
mov dword [0x41a670], ecx
movq xmm0, qword [0x41606c]
movq qword [0x41a668], xmm1
movq qword [0x41a684], xmm0
call edi
mov ecx, esi
mov dword [0x41aa6c], eax
call fcn.00402ee0
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x41a868
push 0x41a668
push 0
mov dword [0x41aa68], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x402ecc
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push 0
push eax
call esi
test eax, eax
je 0x402eb1
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x402ea0
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call esi
test eax, eax
jne 0x402e80
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040438d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0040438d
mov esp, ebp
pop ebp
ret 0x10