joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437c60
Capabilities:
Contain obfuscated stackstrings
Open clipboard
Read clipboard data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
xor ebx, ebx
cmp eax, 0
je 0x437dbb
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
sub esp, 8
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov edi, eax
cmp edi, 0
setne al
xor ebx, ebx
test al, 1
jne 0x437cc1
jmp 0x437db3
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
mov esi, eax
mov dword [esp], esi
call fcn.0040c600
mov ebp, eax
xor ebx, ebx
cmp ebp, 0
je 0x437da7
mov al, byte [esp + 0x10]
mov byte [esp + 0x14], al
mov byte [esp + 0x18], 0x67
mov byte [esp + 0x19], 0x4d
mov byte [esp + 0x1a], 0x4f
mov byte [esp + 0x1b], 0x47
mov byte [esp + 0x1c], 0x4a
mov byte [esp + 0x1d], 0x46
mov byte [esp + 0x1e], 0x53
mov byte [esp + 0x1f], 0xbd
mov byte [esp + 0x20], 0x4c
mov byte [esp + 0x21], 3
mov byte [esp + 0x22], 0xc2
mov byte [esp + 0x23], 0xc7
mov byte [esp + 0x24], 0xc0
mov byte [esp + 0x25], 0x4d
mov eax, 0xe
mov byte [esp + eax + 0x18], 0
add eax, 1
cmp eax, 0x13
jne 0x437d37
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x13
jae 0x437d81
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0043cc20
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x18], al
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
jmp 0x437d4c
jmp 0x437d83
jmp 0x437d85
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
call fcn.0040d2a0
sub esp, 0xc
mov bl, al
and bl, 1
jmp 0x437da7
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x437dbb
and bl, 1
movzx eax, bl
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x43f9d0
mov dword [esp + 4], 0x22222093
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x43fa26
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.00443c00
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x43fa00
test ebx, ebx
je 0x43fa8e
sar ebx, 1
mov eax, dword [esp + 4]
lea ecx, [ebx - 1]
mov edx, ebx
and edx, 3
je 0x43fa51
mov ebp, esi
nop
nop
nop
nop
dec ebx
movzx esi, word [edi]
add edi, 2
xor esi, ebp
imul esi, eax
mov ebp, esi
dec edx
jne 0x43fa40
cmp ecx, 3
jb 0x43fa8e
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [edi + ecx*2]
xor edx, esi
imul edx, eax
movzx esi, word [edi + ecx*2 + 2]
xor esi, edx
imul esi, eax
movzx edx, word [edi + ecx*2 + 4]
xor edx, esi
imul edx, eax
movzx esi, word [edi + ecx*2 + 6]
xor esi, edx
imul esi, eax
add ecx, 4
cmp ebx, ecx
jne 0x43fa60
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4407e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4408d9
mov ebp, dword [esp + 0x18]
xor esi, esi
mov edi, 2
jmp 0x440819
lea ecx, [edi + 4]
add edi, 2
mov eax, dword [esp]
mov esi, eax
cmp edi, edx
mov edi, ecx
mov ebp, dword [esp + 0x18]
jae 0x4408db
movzx eax, byte [ebp + edi - 2]
push eax
call fcn.00421630
add esp, 4
mov bh, al
movzx eax, byte [ebp + edi - 1]
push eax
call fcn.00421630
mov edx, dword [esp + 0x20]
add esp, 4
mov bl, al
shl bh, 2
shr al, 4
and al, 3
or al, bh
lea ecx, [esi + 1]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov byte [ecx + esi], al
cmp edi, edx
jae 0x440800
movzx eax, byte [ebp + edi]
push eax
call fcn.00421630
mov edx, dword [esp + 0x20]
add esp, 4
cmp al, 0x40
je 0x440800
shl bl, 4
mov ecx, eax
xor cl, 0xc0
mov edx, eax
or dl, 0x3c
and dl, cl
shr dl, 2
add dl, bl
lea ecx, [esi + 2]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov byte [ecx + esi + 1], dl
mov edx, dword [esp + 0x1c]
lea ecx, [edi + 1]
cmp ecx, edx
jae 0x440800
mov ecx, dword [esp + 0x18]
movzx ecx, byte [ecx + edi + 1]
push ecx
mov ebx, eax
call fcn.00421630
mov edx, dword [esp + 0x20]
add esp, 4
cmp al, 0x40
je 0x440800
mov ecx, ebx
shl cl, 6
add al, cl
mov ecx, dword [esp + 0x20]
mov byte [ecx + esi + 2], al
add esi, 3
mov dword [esp], esi
jmp 0x440800
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x449de0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
movzx esi, word [eax]
mov dword [esp + 4], 0x710eb543
mov word [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x449e36
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0044be70
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x449e10
xor eax, eax
cmp dword [esp + 4], esi
setne al
xor esi, esi
jmp dword [eax*4 + 0x456088]
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x3c]
mov ebx, dword [eax + edi]
mov dword [esp + 4], 0x191a504c
mov byte [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x449e96
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.0044bef0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x449e70
xor eax, eax
cmp ebx, dword [esp + 4]
setne al
jmp dword [eax*4 + 0x456090]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + edi + 0x78]
mov edi, dword [eax + edi + 0x7c]
test edi, edi
sete al
test edx, edx
sete cl
or cl, al
movzx eax, cl
mov dword [esp + 0xc], edx
jmp dword [eax*4 + 0x4560a8]
jmp dword [0x4560a0]
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401841
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x429c3f
call fcn.00428a70
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x18]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.0040189a
lea ecx, [esi + 0x30]
call fcn.004026d3
lea ecx, [esi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.004026d3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4018fd
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x429ca7
call fcn.00428a70
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x42c818
mov dword [esi + 0xc], 0x42c808
mov dword [esi + 0x10], 0x42c7f8
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x24]
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], bl
mov byte [esi + 0x1c], bl
mov byte [esi + 0x1d], 1
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1f], bl
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov byte [esi + 0x22], bl
call fcn.004026d3
lea ecx, [esi + 0x30]
mov dword [ebp - 4], ebx
call fcn.004026d3
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 1
call fcn.004026d3
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
mov dword [esi + 0x50], ebx
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], bl
call fcn.004026d3
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004026d3
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.004026d3
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.004026d3
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 6
call fcn.004026d3
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 7
call fcn.004026d3
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42c7d4
mov dword [esi + 4], 0x42c7c0
mov dword [esi + 8], 0x42c7ac
mov dword [esi + 0xc], 0x42c79c
mov dword [esi + 0x10], 0x42c78c
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403a2b
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov edi, edx
lea ecx, [ebp - 4]
push 0x2002
call fcn.004056df
test al, al
jne 0x403a52
xor bl, bl
jmp 0x403a88
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x403a4e
push dword [ebp + 8]
push edi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403a4e
and dword [ebp - 4], 0
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00405700
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403c3a
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x403dc6
Capabilities:
Create directory

Disassembly:
mov eax, 0x429e58
call fcn.00428a70
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x403de9
mov al, 1
jmp 0x403e2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403dfa
xor al, al
jmp 0x403e2f
lea ecx, [ebp - 0x44]
call fcn.00404008
lea ecx, [ebp - 0x1c]
call fcn.004026d3
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00404383
test al, al
je 0x403e24
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00402183
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404374
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404382
or eax, eax
ret

Function at 0x404a27
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429f30
call fcn.00428a70
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f37
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x404afd
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404a63
mov eax, ebx
add eax, eax
push eax
call fcn.0040214f
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404af6
cmp ebx, dword [ebp - 0x18]
ja 0x404af6
lea ecx, [ebp - 0x2c]
call fcn.004026d3
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x404ade
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x404ad3
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00402812
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.0040f015
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401d48
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x404aa1
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402183
push esi
call fcn.00402183
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x404aff
push esi
call fcn.00402183
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404b84
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404bae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404bae
xor al, al
jmp 0x404bce
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00428d50
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4
Function at 0x40c00d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42a5ba
call fcn.00428a70
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.004026d3
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c05c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40c0b9
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42a605
call fcn.00428a70
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040e4f5
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.0040c104
push dword [esi + 0x24]
call fcn.00402183
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.00401af5
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040c692
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40eb2d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42aa11
call fcn.00428a70
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov byte [esi + 0x13], bl
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov byte [esi + 0x17], bl
call fcn.004026d3
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call fcn.004026d3
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.004026d3
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 6
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov word [esi + 0x4c], bx
mov byte [esi + 0x4e], bl
mov byte [esi + 0x4f], bl
call fcn.0040c05c
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 7
call fcn.0040c05c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40ed70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x42aa92
call fcn.00428a70
push ecx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esi], 0x42cfd0
mov dword [esi + 4], 0x42cfbc
mov dword [esi + 8], 0x42cfac
mov dword [esi + 0xc], 0x42c7f8
mov dword [esi + 0x10], 0x42cf98
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], al
mov byte [esi + 0x19], al
mov dword [ebp - 0x10], esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
call fcn.004026d3
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004026d3
lea edi, [esi + 0x60]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00404008
lea ecx, [edi + 0x28]
call fcn.004026d3
lea ecx, [esi + 0x98]
mov byte [ebp - 4], 5
call fcn.0040ab3f
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42cf84
mov dword [esi + 4], 0x42cf70
mov dword [esi + 8], 0x42cf60
mov dword [esi + 0xc], 0x42cf50
mov dword [esi + 0x10], 0x42cf3c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40f0dd
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x42ab51
call fcn.00428a70
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi]
test eax, eax
mov dword [ebx], eax
je 0x40f101
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebx + 4], eax
je 0x40f115
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 8]
mov byte [ebp - 4], 1
test eax, eax
mov dword [ebx + 8], eax
je 0x40f129
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [esi + 0xc]
mov byte [ebp - 4], 2
test eax, eax
mov dword [ebx + 0xc], eax
je 0x40f13d
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov al, byte [esi + 0x10]
lea ecx, [ebx + 0x18]
mov byte [ebx + 0x10], al
mov al, byte [esi + 0x11]
mov byte [ebx + 0x11], al
mov al, byte [esi + 0x12]
mov byte [ebx + 0x12], al
mov al, byte [esi + 0x13]
mov byte [ebx + 0x13], al
mov al, byte [esi + 0x14]
mov byte [ebx + 0x14], al
mov al, byte [esi + 0x15]
mov byte [ebx + 0x15], al
mov al, byte [esi + 0x16]
mov byte [ebx + 0x16], al
mov al, byte [esi + 0x17]
mov byte [ebx + 0x17], al
lea eax, [esi + 0x18]
push eax
mov byte [ebp - 4], 3
call fcn.004027a6
lea eax, [esi + 0x24]
lea ecx, [ebx + 0x24]
push eax
mov byte [ebp - 4], 4
call fcn.004027a6
lea eax, [esi + 0x30]
lea ecx, [ebx + 0x30]
push eax
mov byte [ebp - 4], 5
call fcn.004027a6
mov eax, dword [esi + 0x3c]
add esi, 0x44
mov dword [ebx + 0x3c], eax
mov eax, dword [esi - 4]
lea edi, [ebx + 0x44]
mov dword [ebx + 0x40], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x78]
mov byte [ebp - 4], 6
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x5c], eax
mov al, byte [esi + 0x60]
mov byte [ebx + 0x60], al
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [ebx + 0x74], eax
lea eax, [esi + 0x78]
push eax
call fcn.0040f23c
lea eax, [esi + 0xa8]
lea ecx, [ebx + 0xa8]
push eax
mov byte [ebp - 4], 7
call fcn.0040f23c
mov eax, dword [esi + 0xd8]
pop edi
mov dword [ebx + 0xd8], eax
mov eax, dword [esi + 0xdc]
mov dword [ebx + 0xdc], eax
mov eax, ebx
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40f98f
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esp + 8]
shr eax, 0xf
movzx ecx, word [ecx + 0xc]
and al, 1
cmp ecx, 8
je 0x40f9d0
cmp ecx, 0x52
je 0x40f9c3
cmp ecx, 0x76
je 0x40f9ba
xor al, al
jmp 0x40f9d9
mov ecx, esi
call fcn.00410314
jmp 0x40f9d7
test al, al
je 0x40f9b6
mov ecx, esi
call fcn.00410162
jmp 0x40f9d7
mov ecx, esi
call fcn.00410204
mov al, 1
pop esi
ret 4
Function at 0x410c10
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42ae0e
call fcn.00428a70
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x42d0a0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
call fcn.004026d3
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004026d3
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004026d3
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi], 0x42d110
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x410c72
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42ae41
call fcn.00428a70
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00401af5
push dword [esi + 0x24]
call fcn.00402183
push dword [esi + 0x18]
call fcn.00402183
push dword [esi + 0xc]
call fcn.00402183
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x42d0d8
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x412667
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x42b0b0
call fcn.00428a70
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov byte [esi + 3], bl
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.004026d3
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.004026d3
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.004026d3
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
call fcn.004126fd
lea ecx, [esi + 0x98]
call fcn.00427810
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret