joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a90d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4a90d7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x4a91ad
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 + 0x507cb0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x507cb0]
add ecx, 8
sub edx, 8
dec esi
jne 0x4a90f0
pop edi
test edx, edx
je 0x4a91ca
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x507cb0]
inc ecx
dec edx
jne 0x4a91b1
not eax
pop esi
ret

Function at 0x4a91d0
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 + 0x507cb0]
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 + 0x507cb0]
mov dword [edx + 8], ecx
ret

Function at 0x4a9220
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 + 0x507cb0]
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 + 0x507cb0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4a9920
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x4a9952
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 0x4a9948
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 0x4a9965
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.004d23c0
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x4a9980
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4a99b3
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 0x4a99ad
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4a99df
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4a99c5
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.004d23c0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4a99f6
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 0x4a99f0
cmp byte [esi + 8], 0
je 0x4a99f0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4a9b30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4a9b75
cmp byte [esi + 1], 0
je 0x4a9b7d
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 0x4a9b92
cmp byte [esi + 1], 0
je 0x4a9b84
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 0x4a9b9b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4a9b4e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4a9b9b
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 0x4a9baf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004c9c38
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a9bcd
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 0x4a9cdf
jmp 0x4a9bf0
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 0x4a9c01
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 0x4a9c1a
mov ebp, 0x404
cmp byte [esi], 0
je 0x4a9c3f
cmp byte [esi + 1], 0
je 0x4a9cdf
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 0x4a9c42
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4a9c6a
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 0x4a9c64
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4a9c90
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4a9c7b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004d23c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4a9cdf
lea eax, [ebp - 3]
test eax, eax
js 0x4a9cca
dec eax
cmp byte [eax + ebx], 0x50
jne 0x4a9cbc
cmp byte [eax + ebx + 1], 0x4b
jne 0x4a9cbc
cmp byte [eax + ebx + 2], 5
jne 0x4a9cbc
cmp byte [eax + ebx + 3], 6
je 0x4a9cc2
test eax, eax
jns 0x4a9ca0
jmp 0x4a9cca
add eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4a9cdf
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4a9be4
push ebx
call fcn.004ca991
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4aa760
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 0x4aa778
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4aa76d
cmp dword [edi + 0x7c], ebx
je 0x4aa787
call fcn.004aab40
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004aa4d0
add esp, 0xc
test eax, eax
je 0x4aa7ad
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.004c9c38
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4aa7ef
push 0x4000
call fcn.004c9c38
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 0x4aa7fb
push ebp
call fcn.004ca991
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 0x4aa844
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.004a9490
test eax, eax
jne 0x4aa844
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 0x4aa86e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4aa877
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 0x4aa8b2
mov cl, byte [esi]
cmp cl, bl
je 0x4aa8b2
call fcn.004a91d0
inc esi
jne 0x4aa8a4
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 0x4aaca0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x4aad46
cmp dword [ebx + 4], 0xffffffff
jne 0x4aad46
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4aacd0
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4aad07
cmp eax, 0x2f
je 0x4aad07
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4aacf4
mov eax, dword [0x4ec878]
mov dword [edi], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.004a98e0
add esp, 8
test eax, eax
jne 0x4aad2b
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.004a9d00
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 0x4ace40
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x258
push ebx
test esi, esi
je 0x4acec1
cmp word [esi], 0
je 0x4acec1
push 4
push 0x50f014
push esi
call fcn.004cbb84
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x4ace6a
lea eax, [esi + 8]
mov ebx, 0x4f492c
call fcn.00409d30
test eax, eax
je 0x4acea4
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4acec1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4ace9a
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov al, 1
pop ebx
add esp, 0x258
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x4aceb1
mov dword [edi], eax
xor edx, edx
cmp eax, 0xffffffff
setne al
pop ebx
add esp, 0x258
ret
xor al, al
pop ebx
add esp, 0x258
ret

Function at 0x4ad110
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 0x4ad147
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ad144
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 0x4ad4b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004d5830
push esi
push 0x7fff
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x4ad4ef
lea edx, [esi + esi + 2]
push edx
lea eax, [esp + 8]
push eax
push edi
call fcn.004d23c0
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x10000
ret
xor ecx, ecx
mov word [edi], cx
pop esi
add esp, 0x10000
ret
Function at 0x4ad500
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
push ecx
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ad527
xor eax, eax
mov word [esi], ax
add esp, 8
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edi
lea ecx, [esp + 4]
push ecx
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 8]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x4ad59e
mov eax, dword [esp]
test eax, eax
je 0x4ad59e
shr eax, 1
dec eax
mov dword [esp], eax
cmp word [esi + eax*2], 0
jne 0x4ad586
test eax, eax
je 0x4ad5a5
cmp word [esi + eax*2 - 2], 0
jne 0x4ad5a5
dec eax
mov dword [esp], eax
jne 0x4ad574
add esp, 8
ret
inc eax
mov dword [esp], eax
cmp eax, 0x104
jae 0x4ad59e
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esp]
add esp, 8
ret
xor edx, edx
mov word [esi], dx
xor eax, eax
add esp, 8
ret
Function at 0x4addf0
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 0x4ade17
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
jmp 0x4ade1d
mov ebx, dword [0x51aec4]
cmp ebx, edi
je 0x4adf7b
mov eax, ebp
cmp ebp, edi
jge 0x4ade32
neg eax
movzx eax, ax
jmp 0x4ade60
jne 0x4ade39
mov eax, 1
lea ecx, [esp + 0x14]
push ecx
push 0x4addc0
push 0xe
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x51c068
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x1c]
cmp eax, 0x51c068
je 0x4adf58
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4adf58
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4adf58
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4adf58
cmp dword [esp + 0x2c], 0xffffffff
jne 0x4adead
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x2c], 0
jne 0x4adec0
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 0x4adf06
lea edx, [esi + 0xe]
lea edi, [eax - 1]
mov al, byte [edx]
mov cl, byte [esi]
cmp al, cl
jbe 0x4adee8
movzx eax, cl
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setl cl
jmp 0x4adef4
movzx eax, al
xor ecx, ecx
cmp eax, dword [esp + 0x2c]
setge cl
mov eax, ecx
test eax, eax
je 0x4adefc
mov esi, edx
add edx, 0xe
dec edi
jne 0x4aded2
mov ebp, dword [esp + 0x28]
movzx edx, word [esi + 0xc]
push 3
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4adf54
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4adf54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4adf54
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 0x4adf6c
test edi, edi
je 0x4adf6c
mov dword [eax], ebx
jmp 0x4adf77
test esi, esi
je 0x4adf77
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4adfb1
test ebp, ebp
jle 0x4adf94
lea eax, [ebp - 1]
push eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
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_ExtractIconW]
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 0x4aede0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, 0x51c09c
call fcn.00404cb0
test eax, eax
jne 0x4aee16
push 0x4f5ac4
push 0x4e6de0
call fcn.004a4b10
add esp, 4
push eax
mov ecx, 0x51c0f8
call fcn.00477180
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 0x4aee84
xor esi, esi
cmp dword [0x51c0b4], esi
je 0x4aee69
cmp dword [0x51c0a4], esi
je 0x4aee57
mov edx, dword [0x51c09c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x51c0a4], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x51c0b4], esi
mov dword [0x51c09c], 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 0x4aee32
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x4aee32
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x4aee32
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 0x4aeefb
test ebx, ebx
je 0x4aeee1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4aef51
push ebx
push ebp
push eax
call fcn.004d23c0
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 0x4aee80
jmp 0x4aee32
cmp dword [0x51c0b4], 0
je 0x4aef35
cmp dword [0x51c0a4], 0
je 0x4aef23
mov eax, dword [0x51c09c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x51c0a4], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x51c0b4], eax
mov dword [0x51c09c], eax
push 0x4f5ac4
push str.Out_of_memory.
mov ecx, 0x51c0f8
call fcn.00477180
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 [0x51c0b4], esi
je 0x4aef8f
cmp dword [0x51c0a4], esi
je 0x4aef7d
mov ecx, dword [0x51c09c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x51c0a4], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x51c0b4], esi
mov dword [0x51c09c], esi
push 0x4f5ac4
push 0x50f234
mov ecx, 0x51c0f8
call fcn.00477180
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x4af390
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x4af3a3
jmp dword [eax*4 + 0x4af574]
mov eax, esi
call fcn.00401610
cmp dword [0x51b038], 0
jne 0x4af480
cmp dword [esi + 0xc], 0
jne 0x4af480
mov edi, dword [esp + 0x14]
cmp dword [0x51f1c4], esi
jne 0x4af3d8
test edi, edi
jne 0x4af443
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4af43f
mov dword [0x51f1c4], 0
test edi, edi
je 0x4af437
cmp dword [0x51b014], 0
je 0x4af428
mov edx, dword [esi + 0x18]
push edx
push 0x50f298
call fcn.004a4b10
add esp, 4
push eax
mov eax, dword [0x51b014]
push eax
push 0x51c0f8
xor ecx, ecx
call fcn.0042e3f0
mov ecx, dword [esi + 0x18]
call fcn.004ad4b0
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 0x4af471
cmp byte [esi + 0x17], 0
jne 0x4af44e
mov eax, dword [esi + 0xc]
jmp 0x4af450
mov eax, esi
test byte [eax + 0x15], 4
je 0x4af45d
mov eax, esi
call fcn.0042e530
xor ecx, ecx
mov word [edi], cx
mov dword [0x51f1c4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x51f1c4], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x4af500
test eax, eax
jne 0x4af4b8
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x4af4aa
mov eax, esi
call fcn.0042e530
xor edx, edx
mov word [edi], dx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x4af500
cmp eax, 0x186a0
jae 0x4af4ef
movzx eax, word [ecx]
test ax, ax
je 0x4af4e1
mov edi, edi
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x4af4d0
xor eax, eax
mov word [edi], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call fcn.004d23c0
add esp, 0xc
xor ecx, ecx
mov word [edi + ebx*2], cx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push edx
call fcn.004af390
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
push esi
mov ecx, 0x51c09c
call fcn.004046b0
cmp eax, 0xffffffff
jne 0x4af533
xor eax, eax
test esi, esi
je 0x4af56b
xor ecx, ecx
mov word [esi + eax*2], cx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4af551
xor edx, edx
mov word [eax], dx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push eax
push ecx
call edx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4afcf0
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
movzx eax, word [esi]
cmp eax, 0x41
je 0x4afd01
cmp eax, 0x61
jne 0x4afd5b
cmp word [esi + 2], 0
jne 0x4afd5b
mov eax, dword [esp + 0x10]
cmp word [eax], 0
jne 0x4afd5b
cmp word [ebx], 0
jne 0x4afd5b
cmp word [edi], 0
jne 0x4afd5b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x4afd5b
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xea], 0
jne 0x4afd42
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4afd5b
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4afd56
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 0x4afd8f
cmp word [esi], 0
jne 0x4afd8f
mov edx, dword [esp + 0x10]
cmp word [edx], 0
jne 0x4afd8f
cmp word [ebx], 0
jne 0x4afd8f
cmp word [edi], 0
jne 0x4afd8f
mov eax, dword [esp + 0xc]
call fcn.004b0510
test eax, eax
jne 0x4afdb4
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.004b0310
add esp, 0x18
jmp 0x4afd88
pop edi
pop ebp
jmp fcn.004afe20