joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4803a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004f4ee0
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x480415
cmp ebx, dword [esi]
je 0x48040c
test edi, edi
je 0x4803f2
cmp dword [esp + 0xa0], eax
jge 0x48040c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f4a9d
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x48041b
mov ebx, dword [esi]
test ebx, ebx
je 0x4803f2
test edi, edi
push ebp
je 0x4804ed
push ebx
call fcn.00484dd0
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x48044b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00484c60
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x4804a5
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00484100
add esp, 0xc
test eax, eax
je 0x4805a8
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004842b0
add esp, 0xc
test eax, eax
je 0x4805a8
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004842c0
add esp, 0xc
test eax, eax
je 0x4805a8
jmp 0x4804ca
cmp eax, 0x80
ja 0x4805a8
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004f0e10
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4804f5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004eef40
add esp, 0xc
jmp 0x4804f5
test eax, eax
je 0x480594
xor eax, eax
jmp 0x480500
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x480500
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00484100
add esp, 0xc
test eax, eax
je 0x4805a8
push ebx
call fcn.00484dd0
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004842b0
add esp, 0x10
test eax, eax
je 0x4805a8
xor eax, eax
jmp 0x480550
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x480550
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00484100
add esp, 0xc
test eax, eax
je 0x4805a8
push ebx
call fcn.00484dd0
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004842b0
add esp, 0x10
test eax, eax
je 0x4805a8
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00484420
add esp, 8
test eax, eax
jne 0x4805ac
xor eax, eax
jmp 0x4805b1
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f4a9d
add esp, 0x88
ret
Function at 0x484b20
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004f4ee0
mov eax, dword [0x55709c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x484ba7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x484ba7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004f637d
add esp, 0x10
test eax, eax
jge 0x484b7d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4a9d
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004f637d
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x484c35
call fcn.004849e0
test eax, eax
jle 0x484c35
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f4a9d
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f4a9d
add esp, 0x108
ret
Function at 0x4d6710
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d6729
mov esi, edi
mov edi, eax
jmp 0x4d672b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d673b
mov eax, ebx
jmp 0x4d6745
push eax
push ebx
call fcn.0048fd70
add esp, 8
test eax, eax
jne 0x4d674d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d676b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d6754
cmp eax, dword [esi + 4]
jge 0x4d6782
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d6770
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d67a5
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d67a2
sub eax, 1
test eax, eax
jg 0x4d6792
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4ebff4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55709c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004ebf33
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004eef40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4ec043
cmp dword [ebp - 0x1c], 5
jb 0x4ec05b
jmp 0x4ec057
cmp dword [ebp - 0x10], 1
jne 0x4ec05b
cmp dword [ebp - 0x1c], 4
ja 0x4ec057
jne 0x4ec05b
cmp dword [ebp - 0x18], 0
jbe 0x4ec05b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x538b14
call fcn.00407c7d
test eax, eax
jge 0x4ec07c
mov byte [0x55eb58], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f4a9d
add ebp, 0x78
leave
ret
Function at 0x4ec2fb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x55db30], 0
push esi
jne 0x4ec26e
call fcn.004ec199
test eax, eax
je 0x4ec2b1
mov eax, dword [0x55db30]
cmp eax, 1
jne 0x4ec28f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4ec2b1
pop esi
ret
push eax
call dword [0x55db38]
test eax, eax
jne 0x4ec2f9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4ec2b5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x55db30]
call dword [0x55db38]
mov edi, eax
test edi, edi
je 0x4ec2dc
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4ec2f8
lea edi, [esi + 0xff0]
push esi
push dword [0x55db30]
call dword [0x55db34]
add esi, 0x10
cmp esi, edi
jb 0x4ec2e2
mov eax, esi
pop edi
pop esi
ret
jmp 0x4ec25b
Function at 0x4eec7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4eecbb
cmp dword [ebp + 0x14], edi
je 0x4eecbb
cmp ecx, edi
jne 0x4eecc2
call fcn.004f5bf0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004ee8aa
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4eecd6
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4eecf7
cmp ebx, 0xffffffff
je 0x4eece6
push ebx
push edi
push ecx
call fcn.004eef40
add esp, 0xc
cmp esi, edi
je 0x4eeca3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4eeca3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4eed13
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4eed1a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4eee0b
test word [esi + 0xc], 0x10c
je 0x4eed6e
mov eax, dword [esi + 4]
test eax, eax
je 0x4eed6e
jl 0x4eee6c
cmp ebx, eax
mov edi, ebx
jb 0x4eed3f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4eee13
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004ee1b8
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4eee03
cmp ebx, dword [ebp - 0xc]
jb 0x4eeddb
cmp dword [ebp - 0xc], 0
je 0x4eed98
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4eed8d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4eed94
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4eeda3
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4eeda3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4eee3f
push eax
push dword [ebp - 8]
push esi
call fcn.004f16c3
pop ecx
push eax
call fcn.004fd636
add esp, 0xc
test eax, eax
je 0x4eee7e
cmp eax, 0xffffffff
je 0x4eee6c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4eee03
push esi
call fcn.004fcf55
cmp eax, 0xffffffff
pop ecx
je 0x4eee70
cmp dword [ebp - 4], 0
je 0x4eee3f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4eed22
mov eax, dword [ebp + 0x14]
jmp 0x4eecbd
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4eee2a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004eef40
add esp, 0xc
call fcn.004f5bf0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4eecb3
cmp dword [ebp + 0xc], 0xffffffff
je 0x4eee55
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004eef40
add esp, 0xc
call fcn.004f5bf0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4eecb3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4eecbd
or dword [esi + 0xc], 0x10
jmp 0x4eee70
Function at 0x4f254b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4f2578
call fcn.004f5c03
mov dword [eax], esi
call fcn.004f5bf0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004ee8aa
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4f2554
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f25a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004f5c16
pop ecx
call fcn.004f5bf0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4f25ce
test al, 1
je 0x4f25ce
test byte [esp + 0xc], 2
je 0x4f25ce
call fcn.004f5c03
mov dword [eax], 5
call fcn.004f5bf0
mov dword [eax], 0xd
jmp 0x4f259e
xor eax, eax
pop esi
ret

Function at 0x4f4a9d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55709c]
jne 0x4f4aa7
repz ret
jmp fcn.00505c87

Function at 0x4fa8a9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x557c08]
je 0x4fa8c4
inc edi
cmp edi, 0x17
jb 0x4fa8b5
cmp edi, 0x17
jae 0x4faa44
push ebp
push 3
call fcn.005077f7
cmp eax, 1
pop ecx
je 0x4faa10
push 3
call fcn.005077f7
test eax, eax
pop ecx
jne 0x4fa8f8
cmp dword [0x557098], 1
je 0x4faa10
cmp ebx, 0xfc
je 0x4faa43
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x55dc48
push ebp
call fcn.004f264d
add esp, 0xc
test eax, eax
je 0x4fa92e
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ae
add esp, 0x14
push 0x104
mov esi, 0x55dc61
push esi
push 0
mov byte [0x55dd65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4fa972
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f264d
add esp, 0xc
test eax, eax
je 0x4fa972
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004ee7ae
add esp, 0x14
push esi
call fcn.004ec390
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4fa9b7
push esi
call fcn.004ec390
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x55df5c
push 0x53a334
sub ecx, eax
push ecx
push eax
call fcn.00504bc9
add esp, 0x14
test eax, eax
je 0x4fa9b7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ae
add esp, 0x14
jmp 0x4fa9b9
xor esi, esi
push 0x53a330
push ebx
push ebp
call fcn.00504b58
add esp, 0xc
test eax, eax
je 0x4fa9d9
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ae
add esp, 0x14
push dword [edi*8 + 0x557c0c]
push ebx
push ebp
call fcn.00504b58
add esp, 0xc
test eax, eax
je 0x4fa9fb
push esi
push esi
push esi
push esi
push esi
call fcn.004ee7ae
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0050763a
add esp, 0xc
jmp 0x4faa43
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4faa43
cmp ebp, 0xffffffff
je 0x4faa43
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x557c0c]
push dword [esi]
call fcn.004ec390
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x50763a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fa32a
xor ebx, ebx
cmp dword [0x55e6e8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x507710
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5077f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53af38
push edi
call esi
cmp eax, ebx
je 0x5077f0
push eax
call fcn.004fa2bc
mov dword [esp], 0x53af28
push edi
mov dword [0x55e6e8], eax
call esi
push eax
call fcn.004fa2bc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x55e6ec], eax
call esi
push eax
call fcn.004fa2bc
mov dword [0x55e6f0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004f45dc
test eax, eax
pop ecx
pop ecx
je 0x5076de
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee7ae
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x507710
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004fa2bc
cmp eax, ebx
pop ecx
mov dword [0x55e6f8], eax
je 0x507710
push 0x53aee0
push edi
call esi
push eax
call fcn.004fa2bc
pop ecx
mov dword [0x55e6f4], eax
mov eax, dword [0x55e6f4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x507795
cmp dword [0x55e6f8], ecx
je 0x507795
push eax
call fcn.004fa333
push dword [0x55e6f8]
mov esi, eax
call fcn.004fa333
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x507795
cmp edi, ebx
je 0x507795
call esi
cmp eax, ebx
je 0x507762
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x507762
test byte [ebp - 0x18], 1
jne 0x507795
lea eax, [ebp - 0x10]
push eax
call fcn.004f4613
test eax, eax
pop ecx
je 0x50777d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004ee7ae
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x50778c
or dword [ebp + 0x10], 0x200000
jmp 0x5077d0
or dword [ebp + 0x10], 0x40000
jmp 0x5077d0
mov eax, dword [0x55e6ec]
cmp eax, dword [ebp - 8]
je 0x5077d0
push eax
call fcn.004fa333
cmp eax, ebx
pop ecx
je 0x5077d0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5077d0
mov eax, dword [0x55e6f0]
cmp eax, dword [ebp - 8]
je 0x5077d0
push eax
call fcn.004fa333
cmp eax, ebx
pop ecx
je 0x5077d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55e6e8]
call fcn.004fa333
cmp eax, ebx
pop ecx
je 0x5077f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5077f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4040f3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffadc
push esi
lea esi, [esp + 0x40]
mov dword [esi], 0x4f4c45
mov dword [esi + 4], 0
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [esi], 0x6f6c65
jne 0x404124
cmp eax, esi
je 0x404125
leave
ret 4
add byte [ebx - 0x17a7dbcc], cl
sbb byte [eax], al
add byte [eax], al
mov esi, dword [esp]
pop eax
call fcn.00404146
cmp eax, 0
je 0x40413d
cmp edx, eax
jbe 0x404154
jmp eax
push eax
notrack jmp dword ds:[sym.imp.KERNEL32.dll_LeaveCriticalSection]
in al, 0x20
inc ebx
add byte [ebx], ah
lds eax, [eax + 0x3b]
les esp, [esi]
jp 0x404163
call dword es:[sym.imp.USER32.dll_GetKeyState]
dec eax
mov esp, 0x48004320
and eax, 0x7ffe
sub ax, 0x7ffc
xchg ecx, eax
push ecx
ror dword [esp], 4
rol dword [esp], 7
pop ecx
xchg ecx, eax
call dword cs:[eax*4 + sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
dec eax
and eax, 6
lea eax, [eax*2 - 0x5b]
mov edx, 0x40d1f6
add eax, edx
je 0x404163
ret

Function at 0x404146
Capabilities:
Log keystrokes via polling

Disassembly:
push esp
push 0
mov eax, ebp
push 0
push 0
push 0xffffffffffffffff
call dword es:[sym.imp.GDI32.dll_EnumICMProfilesA]
and eax, ebp
inc eax
cmp eax, esp
jp 0x404163
Function at 0x4b3a80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
jmp 0x4b3a9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3a90
mov eax, 1
add ebx, ebx
jne 0x4b3ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b3ac4
jne 0x4b3ae3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ae3
dec eax
add ebx, ebx
jne 0x4b3ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3aa8
add ebx, ebx
jne 0x4b3adf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b3b35
xor ecx, ecx
sub eax, 3
jb 0x4b3afb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b3b6a
sar eax, 1
mov ebp, eax
jmp 0x4b3b06
add ebx, ebx
jne 0x4b3b06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
inc ecx
add ebx, ebx
jne 0x4b3b14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3ad4
add ebx, ebx
jne 0x4b3b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b3b16
jne 0x4b3b32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b3b16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b3b54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b3b46
jmp 0x4b3a96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b3b54
add edi, ecx
jmp 0x4b3a96
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3b72
cmp byte [edi], 0x11
jne 0x4b3b72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3b77
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b3bef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb6284]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb63d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3ba4
mov ecx, edi
jns 0x4b3bd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb63dc]
or eax, eax
je 0x4b3be9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3bc1
call dword [esi + 0xb63ec]
mov ebp, dword [esi + 0xb63e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b3c23
sub esp, 0xffffff80
jmp 0x416310
Function at 0x402b74
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x451008], 0x8088405
inc edx
mov dword [ebx + 0x451008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402fcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x451024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403064
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403044
xor eax, eax
push ebp
push 0x40303d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403080
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403044
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x451024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x451024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d10
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x453048], 0
je 0x403d71
cmp word [0x45321c], 0xd7b2
jne 0x403d39
cmp dword [0x453224], 0
jbe 0x403d39
mov eax, 0x453218
call dword [0x453234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x451070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d98
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x451034], 0
jne 0x403d8d
push 0
push 0x451068
push 0x451070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret