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

Disassembly:
push 0x2cc
mov eax, 0x576168
call fcn.00549b7b
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004c925a
call fcn.004c05ae
push eax
lea ecx, [ebp - 0x9c]
call fcn.004bf2ce
and dword [ebp - 4], 0
call fcn.004c05b4
mov edx, eax
mov ecx, eax
call fcn.004bf41b
lea ecx, [ebp - 0x9c]
test al, al
je 0x4c913c
push ebx
call fcn.004bf666
xor ebx, ebx
lea ecx, [ebp - 0x9c]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
call fcn.004bf30c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d8], eax
push ebx
cmp eax, 0xffffffff
jne 0x4c90ac
push 0x5a0cf4
jmp 0x4c9211
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x4c90bf
push ebx
jmp 0x4c91ad
cmp edi, 0x400000
jbe 0x4c90cd
push ebx
jmp 0x4c91be
push edi
mov dword [ebp - 0x2d0], ebx
call fcn.00521d36
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2d0]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d8]
mov dword [ebp - 0x2d4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], edi
je 0x4c9127
push ebx
call fcn.0053d801
pop ecx
mov ecx, esi
call fcn.004c925a
push 0
push str.Could_not_read_file
jmp 0x4c9211
push ecx
push edi
push ebx
mov ecx, esi
call fcn.004c8f8f
push dword [ebp - 0x2d4]
jmp 0x4c923d
push edx
call fcn.004bf649
call fcn.004c05ba
test al, al
je 0x4c9152
call fcn.004c05c0
jmp 0x4c9169
push 2
lea ecx, [ebp - 0x9c]
call fcn.004bf443
xor edx, edx
mov ecx, eax
call fcn.004d2d81
pop ecx
mov edi, eax
test edi, edi
jne 0x4c917a
push eax
push str.Error_opening_zip_file
jmp 0x4c9211
lea eax, [ebp - 0x2cc]
mov edx, ebx
push eax
lea eax, [ebp - 0x2d4]
push eax
push ecx
mov ecx, edi
call fcn.004d2f0f
add esp, 0xc
test eax, eax
je 0x4c91a2
push 0
push str.Could_not_find_ziped_file
jmp 0x4c9211
mov ebx, dword [ebp - 0xa0]
test ebx, ebx
jne 0x4c91b4
push ebx
push str.File_is_empty
jmp 0x4c9211
cmp ebx, 0x400000
jbe 0x4c91c5
push 0
push str.File_too_large
jmp 0x4c9211
push ebx
call fcn.00521d36
mov edx, dword [ebp - 0x2d4]
mov ecx, edi
push ebx
push eax
mov dword [ebp - 0x2d0], eax
call fcn.004d2fe3
add esp, 0xc
test eax, eax
je 0x4c921c
cmp eax, 0x600
je 0x4c921c
push dword [ebp - 0x2d0]
call fcn.0053d801
pop ecx
call fcn.004c05ba
test al, al
jne 0x4c920a
mov ecx, edi
call fcn.004d3016
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004c997e
mov bl, al
jmp 0x4c9245
call fcn.004c05ba
test al, al
jne 0x4c922c
mov ecx, edi
call fcn.004d3016
mov edi, dword [ebp - 0x2d0]
push ecx
push ebx
push edi
mov ecx, esi
call fcn.004c8f8f
push edi
mov bl, al
call fcn.0053d801
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.004bf2f3
mov al, bl
call fcn.00549b2a
ret 8
Function at 0x4c99cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
shr edx, 0x10
mov esi, ecx
push edi
test dx, dx
je 0x4c9a0c
cmp word [eax], 0x3c
jne 0x4c9a03
push eax
call fcn.004c8f44
test al, al
jne 0x4c9a7c
xor eax, eax
jmp 0x4c9a8c
push ecx
push eax
call fcn.004c9022
jmp 0x4c99f4
mov ebx, dword [ebp + 0xc]
push ebx
push eax
call fcn.004c059f
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4c99fc
push edi
call fcn.004c059f
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x4c9a41
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4c99fc
mov eax, dword [ebp + 0x10]
push ecx
push edi
mov dword [esi + 0x140], eax
call fcn.004c059f
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.004c8f8f
test al, al
je 0x4c99fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0x144], ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c9a95
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4d0ea1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4d0eac
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x4d0f64
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
dec edi
jne 0x4d0ec7
pop edi
test esi, esi
je 0x4d0f7d
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x595680]
inc edx
dec esi
jne 0x4d0f68
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x4d176d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x4d17a7
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d17a2
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4d17ce
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x4d17b7
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0053db60
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2a40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4d2af2
movzx eax, word [esi]
test ax, ax
je 0x4d2af2
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x4d2a7e
cmp ax, 0x5c
jne 0x4d2a80
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4d2a72
cmp edi, esi
je 0x4d2ac5
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005466f6
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4d2b02
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + edi - 0x20c], ax
call fcn.004d2a40
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0053ea51
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0053ea22
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
call fcn.0053d15f
int3

Function at 0x4d4d88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x4d4], 0
je 0x4d4df1
cmp dword [ebp + 8], 0x100
jne 0x4d4de1
cmp word [ebp + 0xc], 0xd
jne 0x4d4de1
cmp byte [esi + 0x4da], 0
je 0x4d4dc6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d4de1
cmp byte [esi + 0x4db], 0
jne 0x4d4de1
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x4d4ddd
push ecx
push 0
push 0
push str.return
push esi
call fcn.004c2a8a
xor eax, eax
jmp 0x4d4df4
mov eax, dword [esi + 0x4d4]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebp
ret 0x10
Function at 0x4dee16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4dee83
cmp dword [esi + 0x10], 0
je 0x4dee83
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00550830
mov ebx, esp
test ebx, ebx
je 0x4dee83
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.004bf480
mov ecx, dword [esi + 0x10]
push ecx
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c2a8a
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e9912
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x98], esi
mov dword [esi + 0x10], eax
mov dword [eax + 0x5b8], ebx
cmp dword [esi + 4], ebx
jne 0x4e99a7
lea eax, [ebp - 0xa8]
push eax
call fcn.004e9a20
mov ecx, dword [esi + 0x10]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0xa8]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
push ecx
push ebx
push 0x40000000
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c08cf
mov esi, dword [ebp - 0x98]
mov ecx, esi
push eax
call fcn.004c45be
mov ecx, dword [esi + 0x10]
call fcn.004ccc81
push eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004c34f6
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
call fcn.004bf41b
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.004bf2f3
mov edi, 0x5a8
test bl, bl
je 0x4e99df
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
pop edi
mov byte [esi + 0x18], 1
xor ecx, ebp
pop esi
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 4
Function at 0x4f04c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4f04e9
cmp dword [esi + 8], edi
jge 0x4f04e1
call fcn.004efd34
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edx, edx
test ecx, ecx
jle 0x4f050f
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub ecx, 8
mov byte [ebp + edx - 4], al
inc edx
shr edi, 8
mov dword [esi + 0xc], edi
test ecx, ecx
jg 0x4f04f5
mov dword [esi + 8], ecx
jmp 0x4f0527
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4f051a
xor eax, eax
jmp 0x4f0522
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edx - 4], al
inc edx
cmp edx, 4
jl 0x4f050f
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4f055e
mov ecx, str.zlib_corrupt
call fcn.004ed01b
jmp 0x4f059b
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4f056e
mov ecx, str.read_past_buffer
jmp 0x4f0557
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4f0585
mov edx, edi
mov ecx, esi
call fcn.004efe85
test eax, eax
je 0x4f059b
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0053db60
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4f5320
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a7c5c]
push esi
push edi
mov dword [ebp - 0xc], eax
mov edi, edx
mov ax, word [0x5a7c60]
mov si, cx
push 0x208
mov word [ebp - 8], ax
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.0053e230
add esp, 0xc
mov word [ebp - 0xc], si
lea eax, [ebp - 0x214]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp word [ebp - 0x214], 0
jne 0x4f538a
xor eax, eax
jmp 0x4f53a2
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f5393
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x214]
mov ecx, edi
push eax
call fcn.00420490
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x4f7510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor dl, dl
push edi
mov dword [ebp - 8], esi
mov bl, 0x70
mov eax, str.publishbrowser
add dl, bl
lea eax, [eax + 1]
mov bl, byte [eax]
test bl, bl
jne 0x4f7527
xor eax, eax
mov cl, al
xor cl, dl
mov byte [eax + esi], cl
inc eax
cmp eax, 0x100
jl 0x4f7534
mov cl, 0x70
mov dword [ebp - 4], str.publishbrowser
lea esp, [esp]
movzx eax, cl
mov ch, byte [eax + esi]
mov bl, ch
movzx eax, ch
xor bl, cl
movzx edi, bl
add edi, esi
add esi, eax
mov dword [ebp - 0xc], edi
mov dl, byte [edi]
mov cl, byte [esi]
mov edi, dword [ebp - 8]
movzx eax, dl
mov byte [eax + edi], cl
movzx eax, cl
mov byte [eax + edi], dl
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
mov cl, byte [eax]
mov byte [edi], ch
mov byte [esi], bl
mov esi, dword [ebp - 8]
test cl, cl
jne 0x4f7550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f9e30
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5773e2
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x208
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0053e230
add esp, 0xc
push 0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp + 0x10]
call fcn.004ff450
push eax
lea ecx, [ebp + 0xc]
call fcn.004ff450
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegGetPathW]
test eax, eax
jne 0x4f9fe6
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x21c]
test eax, eax
je 0x4f9fe6
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0053ea71
add esp, 4
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 2
jle 0x4f9fb0
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x21c]
cmp ecx, 0x22
jne 0x4f9fb0
mov edx, dword [ebp - 0x428]
movzx eax, word [ebp + edx*2 - 0x21e]
cmp eax, 0x22
jne 0x4f9fb0
xor ecx, ecx
mov word [ebp - 0x424], cx
push 0x206
push 0
lea edx, [ebp - 0x422]
push edx
call fcn.0053e230
add esp, 0xc
lea eax, [ebp - 0x21a]
push eax
push 0x104
lea ecx, [ebp - 0x424]
push ecx
call fcn.0041f950
mov edx, dword [ebp - 0x428]
lea eax, [edx + edx - 4]
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0x208
jae 0x4f9f6d
jmp 0x4f9f72
call fcn.0053d15f
xor ecx, ecx
mov edx, dword [ebp - 0x42c]
mov word [ebp + edx - 0x424], cx
push 0x20a
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0053e230
add esp, 0xc
lea ecx, [ebp - 0x424]
push ecx
push 0x105
lea edx, [ebp - 0x21c]
push edx
call fcn.0041f950
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004feb20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004feb20
mov eax, dword [ebp - 0x430]
jmp 0x4fa011
mov dword [ebp - 0x434], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004feb20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004feb20
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret

Function at 0x4fa390
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b2e68
push 0x53ff30
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x5bd250]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x19]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xfffffffe
jmp 0x4fa410
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fa430
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5b2e28
push 0x53ff30
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x5bd250]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 0
push ebx
mov ebx, 0
mov eax, 1
invalid
Function at 0x501870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x501894
xor eax, eax
jmp 0x501914
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5018ab
xor eax, eax
jmp 0x501914
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x5018f7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x5018f7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x5018ce
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x501903
xor eax, eax
jmp 0x501914
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x501911
xor eax, eax
jmp 0x501914
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x503e60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578081
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5bd250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00516d00
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x503eaf
mov ecx, dword [ebp - 0x10]
call fcn.00504a40
jmp 0x503fd0
cmp dword [ebp + 0x2824], 1
jne 0x503f00
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x503f00
mov edx, dword [ebp + 0x2a50]
push edx
lea esi, [ebp + 0x18]
mov eax, 0x2a34
call fcn.0053fec0
mov ecx, 0xa8d
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00504120
jmp 0x503fd0
push 0x9030
call fcn.0053ce93
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x503f2a
mov ecx, dword [ebp - 0x18]
call fcn.005047c0
mov dword [ebp - 0x1c], eax
jmp 0x503f31
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.005048d0
push 0x7ee
mov ecx, dword [ebp - 0x10]
call fcn.005048f0
mov eax, dword [ebp + 0x2a50]
push eax
push 0
mov ecx, dword [ebp + 0x2a4c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00504910
lea esi, [ebp + 0x18]
mov eax, 0x2a34
call fcn.0053fec0
mov ecx, 0xa8d
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10]
call fcn.005049f0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00504a20
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 8
call fcn.00516c00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x2a4c
Function at 0x504290
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12d4
call fcn.0053fec0
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1290], ecx
cmp dword [ebp + 8], 0
je 0x5042c6
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx]
test eax, eax
jne 0x5042cb
jmp 0x5043a3
xor ecx, ecx
mov word [ebp - 0x127c], cx
push 0x1276
push 0
lea edx, [ebp - 0x127a]
push edx
call fcn.0053e230
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.00417eb0
push eax
push 0x57f0ac
push 0x93c
lea ecx, [ebp - 0x127c]
push ecx
call fcn.0041f330
add esp, 0x14
mov dword [ebp - 0x12d4], 0
push 0x40
push 0
lea edx, [ebp - 0x12d0]
push edx
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x12d4], 0x44
mov dword [ebp - 0x12a8], 0x80
mov dword [ebp - 0x128c], 0
xor eax, eax
mov dword [ebp - 0x1288], eax
mov dword [ebp - 0x1284], eax
mov dword [ebp - 0x1280], eax
lea ecx, [ebp - 0x128c]
push ecx
lea edx, [ebp - 0x12d4]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x127c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x5043a3
mov ecx, dword [ebp - 0x1288]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x128c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 4