joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c670
Capabilities:
Clear file content

Disassembly:
mov eax, dword [esi + 0x2c]
push ebx
xor ebx, ebx
push ebp
push edi
cmp eax, ebx
je 0x49c696
sub eax, dword [esi + 0x30]
mov edi, dword [esi]
sub eax, dword [esi + 8]
push 1
cdq
push edx
push eax
mov eax, dword [edi + 0x14]
mov ecx, esi
call eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x49c6b3
cmp dword [esi + 0x2c], ebx
jne 0x49c6b3
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
push eax
mov eax, dword [esi + 0x30]
push eax
mov ecx, esi
call edx
mov dword [esi + 8], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
mov byte [esi + 0x28], bl
call edx
mov ecx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push ebx
mov ebp, edx
mov edx, dword [eax + 0x14]
push ecx
mov ecx, esi
call edx
test al, al
je 0x49c71d
mov eax, dword [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x49c71d
cmp ebx, ebp
jg 0x49c6fd
jl 0x49c6f5
cmp dword [esp + 0x10], edi
jae 0x49c6fd
mov eax, dword [esp + 0x10]
mov ecx, ebx
jmp 0x49c701
mov eax, edi
mov ecx, ebp
mov edx, dword [esi]
push 0
push ecx
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
pop edi
pop ebp
pop ebx
ret 8
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
ret 8
Function at 0x4a0180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4a0187
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4a025d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e1818]
add ecx, 8
sub edx, 8
dec esi
jne 0x4a01a0
pop edi
test edx, edx
je 0x4a027a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4e1818]
inc ecx
dec edx
jne 0x4a0261
not eax
pop esi
ret

Function at 0x4a0280
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e1818]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e1818]
mov dword [edx + 8], ecx
ret

Function at 0x4a02d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4e1818]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4e1818]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4a09d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x4a0a02
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a09f8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x4a0a15
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004c3030
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x4a0a30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4a0a63
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a0a5d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4a0a8f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4a0a75
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004c3030
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4a0aa6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4a0aa0
cmp byte [esi + 8], 0
je 0x4a0aa0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4a0be0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4a0c25
cmp byte [esi + 1], 0
je 0x4a0c2d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x4a0c42
cmp byte [esi + 1], 0
je 0x4a0c34
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x4a0c4b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4a0bfe
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4a0c4b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x4a0c5f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004ba2ed
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a0c7d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4a0d8f
jmp 0x4a0ca0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4a0cb1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4a0cca
mov ebp, 0x404
cmp byte [esi], 0
je 0x4a0cef
cmp byte [esi + 1], 0
je 0x4a0d8f
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4a0cf2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4a0d1a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a0d14
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4a0d40
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4a0d2b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004c3030
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4a0d8f
lea eax, [ebp - 3]
test eax, eax
js 0x4a0d7a
dec eax
cmp byte [eax + ebx], 0x50
jne 0x4a0d6c
cmp byte [eax + ebx + 1], 0x4b
jne 0x4a0d6c
cmp byte [eax + ebx + 2], 5
jne 0x4a0d6c
cmp byte [eax + ebx + 3], 6
je 0x4a0d72
test eax, eax
jns 0x4a0d50
jmp 0x4a0d7a
add eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4a0d8f
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4a0c94
push ebx
call fcn.004ba14c
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4a1810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4a1828
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4a181d
cmp dword [edi + 0x7c], ebx
je 0x4a1837
call fcn.004a1bf0
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004a1580
add esp, 0xc
test eax, eax
je 0x4a185d
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004ba2ed
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4a189f
push 0x4000
call fcn.004ba2ed
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x4a18ab
push ebp
call fcn.004ba14c
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x4a18f4
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.004a0540
test eax, eax
jne 0x4a18f4
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4a191e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4a1927
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x4a1962
mov cl, byte [esi]
cmp cl, bl
je 0x4a1962
call fcn.004a0280
inc esi
jne 0x4a1954
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4a1d50
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x4a1df0
cmp dword [ebx + 4], 0xffffffff
jne 0x4a1df0
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a1d80
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x4a1db1
cmp al, 0x2f
je 0x4a1db1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a1da0
mov ax, word [0x4d9ad4]
mov word [edi], ax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.004a0990
add esp, 8
test eax, eax
jne 0x4a1dd5
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.004a0db0
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8

Function at 0x4a3c50
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x148
push edi
test esi, esi
je 0x4a3cd0
cmp byte [esi], 0
je 0x4a3cd0
push 4
push 0x4e5288
push esi
call fcn.004bc8b3
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x4a3c79
lea eax, [esi + 4]
mov edi, 0x4de0a0
call fcn.004099e0
test eax, eax
je 0x4a3cb3
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4a3cd0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x4a3ca9
mov ecx, dword [esp + 8]
mov dword [ebx], ecx
mov al, 1
pop edi
add esp, 0x148
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test ebx, ebx
je 0x4a3cc0
mov dword [ebx], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop edi
add esp, 0x148
ret
xor al, al
pop edi
add esp, 0x148
ret

Function at 0x4a3ee0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp], eax
cmp eax, 0xffffffff
jne 0x4a3f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a3f14
or eax, 0xffffffff
or edx, 0xffffffff
add esp, 0xc
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
ret

Function at 0x4a4280
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004c6f60
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4a42be
lea edx, [esi + 1]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.004c3030
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x8000
ret
mov byte [edi], 0
pop esi
add esp, 0x8000
ret
Function at 0x4a4bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x4a4bf7
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
jmp 0x4a4bfd
mov ebx, dword [0x4f0bcc]
cmp ebx, edi
je 0x4a4d5b
mov eax, ebp
cmp ebp, edi
jge 0x4a4c12
neg eax
movzx eax, ax
jmp 0x4a4c40
jne 0x4a4c19
mov eax, 1
lea ecx, [esp + 0x14]
push ecx
push 0x4a4ba0
push 0xe
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x4f1c68
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x1c]
cmp eax, 0x4f1c68
je 0x4a4d38
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a4d38
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4a4d38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a4d38
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4a4c8d
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x2c], 0
jne 0x4a4ca0
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp + 0x2c], eax
movzx eax, word [edi + 4]
lea esi, [edi + 6]
cmp eax, 1
jle 0x4a4ce6
lea edx, [esi + 0xe]
lea edi, [eax - 1]
mov al, byte [edx]
mov cl, byte [esi]
cmp al, cl
jbe 0x4a4cc8
movzx eax, cl
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setl cl
jmp 0x4a4cd4
movzx eax, al
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setge cl
mov eax, ecx
test eax, eax
je 0x4a4cdc
mov esi, edx
add edx, 0xe
dec edi
jne 0x4a4cb2
mov ebp, dword [esp + 0x28]
movzx edx, word [esi + 0xc]
push 3
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4a4d34
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a4d34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a4d34
push 0
push 0
push 0
push 0x30000
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x4a4d4c
test edi, edi
je 0x4a4d4c
mov dword [eax], ebx
jmp 0x4a4d57
test esi, esi
je 0x4a4d57
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4a4d91
test ebp, ebp
jle 0x4a4d74
lea eax, [ebp - 1]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
xor eax, eax
cmp ebp, 0xffffffff
setge al
dec eax
and eax, ebp
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4a5a50
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x4f2348
call fcn.00404d00
test eax, eax
jne 0x4a5a86
push 0x4d6959
push 0x4d6ba0
call fcn.0049be50
add esp, 4
push eax
mov ecx, 0x4f1cd8
call fcn.00473b40
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x4a5af4
xor esi, esi
cmp dword [0x4f2360], esi
je 0x4a5ad9
cmp dword [0x4f2350], esi
je 0x4a5ac7
mov edx, dword [0x4f2348]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4f2350], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4f2360], esi
mov dword [0x4f2348], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4a5aa2
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x4a5aa2
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x4a5aa2
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4a5b6b
test ebx, ebx
je 0x4a5b51
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a5bc1
push ebx
push ebp
push eax
call fcn.004c3030
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x4a5af0
jmp 0x4a5aa2
cmp dword [0x4f2360], 0
je 0x4a5ba5
cmp dword [0x4f2350], 0
je 0x4a5b93
mov eax, dword [0x4f2348]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4f2350], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4f2360], eax
mov dword [0x4f2348], eax
push 0x4d6959
push str.Out_of_memory.
mov ecx, 0x4f1cd8
call fcn.00473b40
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4f2360], esi
je 0x4a5bff
cmp dword [0x4f2350], esi
je 0x4a5bed
mov ecx, dword [0x4f2348]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4f2350], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4f2360], esi
mov dword [0x4f2348], esi
push 0x4d6959
push 0x4e5404
mov ecx, 0x4f1cd8
call fcn.00473b40
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x4a6010
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
mov ebx, ecx
movzx eax, byte [ebx + 0x17]
push esi
push edi
cmp eax, 3
ja case.default.0x4a6023
jmp dword [eax*4 + 0x4a61e4]
mov eax, ebx
call fcn.004015f0
cmp dword [0x4f0d40], 0
jne 0x4a6102
cmp dword [ebx + 0xc], 0
jne 0x4a6102
mov edi, dword [esp + 0x14]
cmp dword [0x4f4968], ebx
jne 0x4a6058
test edi, edi
jne 0x4a60c3
mov ecx, dword [ebx + 0x18]
push 0
lea eax, [esp + 0x13]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4a60bf
mov dword [0x4f4968], 0
test edi, edi
je 0x4a60b7
cmp dword [0x4f0d1c], 0
je 0x4a60a8
mov edx, dword [ebx + 0x18]
push edx
push 0x4e5434
call fcn.0049be50
add esp, 4
push eax
mov eax, dword [0x4f0d1c]
push eax
push 0x4f1cd8
xor ecx, ecx
call fcn.0042d990
mov ecx, dword [ebx + 0x18]
call fcn.004a4280
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x4a60f3
cmp byte [ebx + 0x17], 0
jne 0x4a60ce
mov eax, dword [ebx + 0xc]
jmp 0x4a60d0
mov eax, ebx
test byte [eax + 0x15], 4
je 0x4a60dd
mov eax, ebx
call fcn.0042dad0
mov byte [edi], 0
mov dword [0x4f4968], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4f4968], ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov edi, dword [ebx + 0xc]
test esi, esi
je 0x4a6175
test edi, edi
jne 0x4a6134
movzx eax, byte [ebx + 0x17]
neg eax
sbb eax, eax
and eax, ebx
test byte [eax + 0x15], 4
je 0x4a6128
mov eax, ebx
call fcn.0042dad0
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [ebx + 8]
cmp esi, ecx
je 0x4a6175
cmp edi, 0x186a0
jae 0x4a6166
mov al, byte [ecx]
test al, al
je 0x4a615a
lea esp, [esp]
inc ecx
mov byte [esi], al
mov al, byte [ecx]
inc esi
test al, al
jne 0x4a6150
mov byte [esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
push edi
push ecx
push esi
call fcn.004c3030
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0xc]
call fcn.004a6010
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x4f2348
call fcn.00404730
cmp eax, 0xffffffff
jne 0x4a61a8
xor eax, eax
test esi, esi
je 0x4a61dc
mov byte [eax + esi], 0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a61c2
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [ebx + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4a6980
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
mov al, byte [esi]
cmp al, 0x41
je 0x4a698e
cmp al, 0x61
jne 0x4a69e4
cmp byte [esi + 1], 0
jne 0x4a69e4
mov eax, dword [esp + 0x10]
cmp byte [eax], 0
jne 0x4a69e4
cmp byte [ebx], 0
jne 0x4a69e4
cmp byte [edi], 0
jne 0x4a69e4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x4a69e4
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xca], 0
jne 0x4a69cb
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a69e4
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a69df
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
test al, al
jne 0x4a6a10
cmp byte [esi], al
jne 0x4a6a10
mov edx, dword [esp + 0x10]
cmp byte [edx], al
jne 0x4a6a10
cmp byte [ebx], al
jne 0x4a6a10
cmp byte [edi], al
jne 0x4a6a10
mov eax, dword [esp + 0xc]
call fcn.004a7160
test eax, eax
jne 0x4a6a35
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
mov edi, dword [esp + 0x24]
push eax
mov edx, esi
call fcn.004a6f70
add esp, 0x18
jmp 0x4a6a09
pop edi
pop ebp
jmp fcn.004a6aa0