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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100f7500]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100939be
cmp word [ebx], dx
jne 0x100939be
or byte [eax + edi + 0x28], 4
jmp 0x100939c3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10093b26
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10093b06
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10093a04
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10093a3a
cmp eax, edx
jae 0x10093a48
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100939df
jmp 0x10093b26
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10093b01
cmp dword [ebp - 0x18], 0
je 0x10093b01
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100f7500]
test byte [eax + edi + 0x28], 0x48
je 0x10093ad7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10093a9b
mov word [esi], cx
jmp 0x10093ad2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100f7500]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100f7500]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100f7500]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10093b26
pop eax
cmp word [ebp - 4], ax
jne 0x10093ae7
cmp esi, ebx
jne 0x10093ae7
mov word [esi], ax
jmp 0x10093b23
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100937cd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10093b26
push 0xd
pop eax
jmp 0x10093ae2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100f7500]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10093b20
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10093b26
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10096bc2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10096c5f
push ebx
push esi
call fcn.10096b8b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10095314
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10096c0c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10096c5e
push edi
push eax
call fcn.1008e3ec
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10096c2c
call fcn.1008e3b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10096c5d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10095314
add esp, 0x20
test eax, eax
jne 0x10096c4b
push edi
call fcn.1008e3b2
jmp 0x10096c53
push ebx
call fcn.1008e3b2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10096c62
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10096c73
pop esi
ret
push ebx
push edi
push esi
call fcn.10096b8b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1008e3ec
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10096c9b
push ebx
push esi
push edi
call fcn.1007b940
add esp, 0xc
push 0
call fcn.1008e3b2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1009706b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10096cb0

Function at 0x1009ab8a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1008ec0a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1009abf9
cmp esi, dword [ebp - 4]
je 0x1009abf4
cmp dword [ebp + 0xc], 0
je 0x1009abf4
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1009abd1
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1009a6dc
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1009abfb
xor eax, eax
inc eax
jmp 0x1009abfb
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1009ac60
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100f3010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1008ec0a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1008ec0a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1009acd7
cmp word [ecx], dx
je 0x1009acd7
mov eax, dword [0x100ca85c]
push edi
dec eax
push eax
push 0x100ca748
call fcn.1009abff
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1009ad4a
cmp word [eax], dx
je 0x1009ad4a
mov eax, dword [edi]
test eax, eax
je 0x1009acfb
cmp word [eax], dx
je 0x1009acfb
lea eax, [ebp - 0x10]
push eax
call fcn.1009a5e2
jmp 0x1009ad04
lea eax, [ebp - 0x10]
push eax
call fcn.1009a67d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1009ad74
mov eax, dword [0x100ca744]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100ca438
call fcn.1009abff
add esp, 0xc
test al, al
je 0x1009ad74
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1009ad3f
cmp word [eax], di
je 0x1009ad3f
lea eax, [ebp - 0x10]
push eax
call fcn.1009a5e2
pop ecx
jmp 0x1009ad76
lea eax, [ebp - 0x10]
push eax
call fcn.1009a67d
jmp 0x1009ad3c
mov eax, dword [edi]
test eax, eax
je 0x1009ad61
cmp word [eax], dx
je 0x1009ad61
lea eax, [ebp - 0x10]
push eax
call fcn.1009a597
pop ecx
jmp 0x1009ad74
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1009ae3f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1009aa84
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1009ae3f
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1009ae3f
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1009ae3f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1009adcc
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10091703
test ebx, ebx
je 0x1009ae3a
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10091703
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1009ae3f
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1009ae3f
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1009dbdb
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1009ae41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10079386
leave
ret
Function at 0x1009dd94
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1009dd10
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1009df03
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1009df03
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1009deb8
jg 0x1009ddf0
test eax, eax
je 0x1009deae
push 1
push 0x1000
call fcn.1008e56e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1009de13
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1009dea5
push 0x8000
push ebx
call fcn.1009dc41
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1009de3c
jg 0x1009de37
cmp ecx, 0x1000
jb 0x1009de3c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10094bb4
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009de81
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1009de37
jl 0x1009de68
test ecx, ecx
jne 0x1009de29
push dword [ebp - 0xc]
push ebx
call fcn.1009dc41
push esi
call fcn.1008e3b2
add esp, 0xc
xor ebx, ebx
jmp 0x1009df11
cmp byte [edi + 0x24], 0
je 0x1009de98
cmp dword [edi + 0x20], 5
jne 0x1009de98
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009dea3
mov ebx, dword [edi + 0x18]
jmp 0x1009dea5
xor ebx, ebx
push esi
call fcn.1008e3b2
pop ecx
jmp 0x1009df11
test ecx, ecx
jg 0x1009de7a
jl 0x1009deb8
test eax, eax
jae 0x1009de7a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100937cd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1009ded8
cmp byte [edi + 0x1c], 0
je 0x1009de7a
jmp 0x1009df09
push ebx
call fcn.1009b21a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1009de7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1009df11
cmp byte [edi + 0x1c], 0
je 0x1009df0e
mov ebx, dword [edi + 0x18]
jmp 0x1009df11
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100937cd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1009fa70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1009fa9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1009fa9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40d0c0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004099d8
xor eax, eax
push ebp
push 0x40d180
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a750
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a900
mov eax, dword [ebx]
call fcn.0040cf88
test al, al
jne 0x40d15d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a750
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a900
mov eax, dword [ebx]
call fcn.0040cf88
test al, al
jne 0x40d15d
mov eax, ebx
call fcn.004098f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d187
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409954
lea eax, [ebp - 4]
call fcn.004098f4
ret

Function at 0x40db34
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x43dbec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x43dc3e
test eax, edx
je 0x43dc41
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x43dc01
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x43dc27
add ecx, 4
js 0x43dc17
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x43dc24
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x43dc4d
test edx, edx
jne 0x43dbf4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4867cc
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4867d4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4c1528
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c15c6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4c158a
cmp byte [ebx + 0x11], 0
jne 0x4c158a
cmp byte [ebx + 0x3c], 0
jne 0x4c158a
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c15ab
lea edx, [ebp - 4]
mov eax, dword [0x667e38]
call fcn.0040da80
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x49543c]
call fcn.0042a94c
call fcn.00408f74
jmp 0x4c15ab
lea edx, [ebp - 8]
mov eax, dword [0x667e38]
call fcn.0040da80
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x49543c]
call fcn.0042a94c
call fcn.00408f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c15cd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409954
ret

Function at 0x4c1f64
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4c1fb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c13a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c1fcb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c1fd4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c13a8
dec esi
jne 0x4c1ff6
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x4c4b7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x66e44c
cmp dword [edi], 0
jne 0x4c4bf8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x66e448]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x6608ac
mov ecx, 2
call fcn.00406c10
mov edx, 0x4c4b54
lea eax, [esi + 5]
call fcn.004c4b74
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004c4b74
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4c4bcd
mov dword [0x66e448], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x54f1bc
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004099d8
xor eax, eax
push ebp
push 0x54f2f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x54f2cc
xor edx, edx
push ebp
push 0x54f2c5
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x54f209
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x54f29a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x54f289
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x54f24c
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040a694
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.00406c10
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f290
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x6678f0]
mov dl, 1
mov eax, dword [0x41c934]
call fcn.0042aa80
call fcn.00408f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f300
lea eax, [ebp - 4]
call fcn.004098f4
ret

Function at 0x553bf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, word [0x553c2c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x553c08
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x553c18
or bx, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x553c28
or bx, 2
mov eax, ebx
pop ebx
ret

Function at 0x5724fc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
push 0x101
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409a7c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x57ac50
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0057ad00
test eax, eax
je 0x57ac8b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0057ad00
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409a7c
jmp 0x57ac99
mov ecx, esi
mov edx, 0x57acb8
mov eax, ebx
call fcn.0057abd8
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00409cd4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x5ae3e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.004098f4
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x5ae432
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x5ae42b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040a750
jmp 0x5ae432
mov eax, esi
call fcn.004098f4
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5b3c60
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5b3dbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6646c0], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4f01b0]
call fcn.004f12fc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5b3d95
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004f13e4
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a750
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5b3dd8
call fcn.0040a900
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004f1670
test al, al
je 0x5b3d7f
lea ecx, [ebp - 4]
mov edx, 0x5b3e4c
mov eax, dword [ebp - 0xc]
call fcn.004f1efc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042d4d8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5b3d7f
xor edx, edx
push ebp
push 0x5b3d78
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5b3e64
mov eax, dword [ebp - 8]
push eax
call fcn.00413088
test eax, eax
je 0x5b3d61
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5b3d61
call fcn.005b3bec
test eax, eax
je 0x5b3d51
mov eax, dword [ebx + 0x50]
jmp 0x5b3d54
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6646c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b3d7f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b3d9c
mov eax, dword [ebp - 0xc]
call fcn.00407a34
ret

Function at 0x5b3ec8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5b3f0f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5b3ef2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5b3f03
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5b3f0f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x5d0bbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5d0c36
mov eax, dword [ebx + 8]
call fcn.0052cf8c
mov ecx, eax
mov dl, 1
mov eax, dword [0x539508]
call fcn.0052727c
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0053dcb8
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5d04b4
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0052cf8c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0052cf8c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5d0cac
mov eax, dword [ebx + 8]
call fcn.0052cf8c
mov ecx, eax
mov dl, 1
mov eax, dword [0x539508]
call fcn.0052727c
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0053dcb8
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5d0500
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0052cf8c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0052cf8c
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5d0d18
mov eax, dword [ebx + 8]
call fcn.0052cf8c
mov ecx, eax
mov dl, 1
mov eax, dword [0x539f88]
call fcn.0052727c
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0052cf8c
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0052cf8c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret