joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bbf9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57ad60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
call fcn.0046b9c6
and dword [esp + 0x30], 0
mov edi, dword [esp + 0x1c]
push 1
lea esi, [esp + 0x18]
call fcn.00475b06
mov byte [esp + 0x30], 1
push dword [esp + 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
mov byte [esp + 0x30], 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.0040120b
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46bc90
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57ad60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
call fcn.0046b9c6
and dword [esp + 0x30], 0
mov edi, dword [esp + 0x1c]
push 3
lea esi, [esp + 0x18]
call fcn.00475b06
mov byte [esp + 0x30], 1
push dword [esp + 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
mov byte [esp + 0x30], 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.0040120b
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46bd27
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57ad60
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 1
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
call fcn.0046b9c6
and dword [esp + 0x30], 0
mov edi, dword [esp + 0x1c]
push 4
lea esi, [esp + 0x18]
call fcn.00475b06
mov byte [esp + 0x30], 1
push dword [esp + 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
mov byte [esp + 0x30], 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.0040120b
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e02c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57db0a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 4]
and dword [esp + 0x30], 0
mov eax, dword [esp + 0x14]
add eax, 0xb4
push eax
lea esi, [esp + 0x20]
call fcn.00407095
mov byte [esp + 0x30], 1
push ecx
push ecx
lea eax, [edi + 0x1c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
push ecx
call fcn.0041d783
mov byte [esp + 0x38], 2
push dword [edi + 0x18]
push 0
push dword [ebp + 0xc]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x2c], esp
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.0041d783
mov byte [esp + 0x4c], 3
mov eax, dword [edi]
push dword [ebp + 8]
mov byte [esp + 0x50], 1
mov ecx, edi
call dword [eax + 0xc]
mov byte [esp + 0x30], 0
cmp byte [esp + 0x20], 0
je 0x46e0dd
mov eax, dword [esp + 0x1c]
call fcn.004143e5
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x14]
push eax
call fcn.00405946
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x47cce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5660a6
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
mov esi, ecx
jne 0x47cd43
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00536476
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x47cd6b
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x47cd6b
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x47cd23
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x47cd77
or eax, 0xffffffff
jmp 0x47cd23
cmp dword [esi + 0x3c], edi
jne 0x47cd8b
push eax
push ebx
call fcn.0047d8b2
test al, al
pop ecx
pop ecx
je 0x47cd72
jmp 0x47cd67
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x18], bl
call fcn.0042cf6e
mov dword [esp + 0x70], edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x47ce9b
cmp eax, 1
jg 0x47cec3
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x47ce30
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053b26b
add esp, 0x10
cmp edi, eax
jne 0x47ceda
lea eax, [esp + 0x10]
cmp dword [esp + 0x1c], eax
mov byte [esi + 0x41], 1
jne 0x47cef6
test edi, edi
ja 0x47ce5e
cmp dword [esp + 0x58], 0x20
jae 0x47ceda
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.00413515
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x21]
push edx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x47cdde
jmp 0x47ceda
cmp eax, 3
jne 0x47ceda
push dword [esi + 0x4c]
push dword [esp + 0x14]
call fcn.0047d8b2
test al, al
pop ecx
pop ecx
jne 0x47cef6
or esi, 0xffffffff
or dword [esp + 0x70], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.00411efe
mov eax, esi
jmp 0x47cd23
mov esi, dword [ebp + 8]
jmp 0x47cedd
Function at 0x47d468
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x56604c
call fcn.0053d805
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x47d578
cmp byte [esi + 0x41], 0
je 0x47d578
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x47d49e
xor al, al
jmp 0x47d57a
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.0042cf6e
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x47d512
dec eax
je 0x47d516
dec eax
dec eax
je 0x47d574
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00411efe
mov al, bl
jmp 0x47d57a
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x47d556
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0045dbcb
mov ecx, eax
call fcn.0045cd5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0053b26b
add esp, 0x10
cmp edi, eax
jne 0x47d4fc
cmp byte [esi + 0x41], 0
je 0x47d574
test edi, edi
jne 0x47d4ac
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.00413515
jmp 0x47d4ac
mov bl, 1
jmp 0x47d4fe
mov al, 1
call fcn.0053d888
ret

Function at 0x47f811
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5770ba
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
call fcn.00412c1b
mov dword [esp + 0x78], edi
push dword [esi + 0x30]
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea esi, [esp + 0x1c]
call fcn.0047fd46
mov byte [esp + 0x78], 2
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.0041382c
cmp dword [0x6ce444], 8
mov eax, dword [0x6ce430]
jae 0x47f88d
mov eax, 0x6ce430
lea ecx, [esp + 0x10]
push ecx
push eax
push dword [esp + 0x1c]
call dword [0x6893d8]
cmp eax, edi
je 0x47f8d4
push str.CStorageRegistry::CreateKey__:_RegCreateKey_failed
lea ecx, [esp + 0x24]
call fcn.00414eb2
mov byte [esp + 0x78], 3
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
xor edi, edi
call fcn.00444314
push 0x648b70
lea eax, [esp + 0x40]
push eax
call fcn.0053cd8e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esp + 0x78], 0xffffffff
lea eax, [esp + 0x14]
call fcn.0047ff7b
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4825a5
Capabilities:
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57d469
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
and dword [esp + 0x170], 0
mov eax, dword [ebp + 8]
and dword [esp + 0xc], 0
mov ebx, dword [esi]
mov dword [esp + 8], eax
mov eax, ebx
and eax, 0xf
mov dword [esp + 0x10], edi
je 0x48260d
mov ecx, ebx
sub ecx, eax
add ecx, 0x10
mov dword [esi], ecx
push dword [esi]
call fcn.005174fd
pop ecx
push edi
mov ecx, eax
call fcn.00406b66
and dword [esp + 0x170], 0
push dword [esi]
mov eax, dword [edi]
push 0
push eax
mov dword [esp + 0x18], 1
call fcn.005389c0
mov eax, dword [edi]
add esp, 0xc
push ebx
push dword [esp + 0xc]
push eax
call fcn.00540410
add esp, 0xc
push 0x61b4c8
push 0x61b4b8
lea eax, [esp + 0x1c]
push eax
call fcn.00482edd
mov dword [esp + 0x170], 2
mov eax, dword [edi]
push dword [esi]
lea ecx, [esp + 0x1c]
push eax
push eax
mov eax, dword [esp + 0x24]
call dword [eax + 0x1c]
mov byte [esp + 0x170], 0
lea eax, [esp + 0x14]
push eax
call fcn.004826b2
mov eax, edi
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00536476
mov esp, ebp
pop ebp
ret

Function at 0x482819
Capabilities:
Reference public rsa key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57d40c
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x67d978]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
and dword [esp + 0x178], 0
and dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
push dword [esi]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
call fcn.005174fd
pop ecx
push edi
mov ecx, eax
call fcn.00406b66
and dword [esp + 0x178], 0
push dword [esi]
mov eax, dword [edi]
push dword [esp + 0xc]
mov dword [esp + 0x14], 1
push eax
call fcn.00540410
add esp, 0xc
push 0x61b4c8
push 0x61b4b8
lea eax, [esp + 0x1c]
push eax
call fcn.00483003
mov dword [esp + 0x178], 2
mov eax, dword [edi]
push dword [esi]
lea ecx, [esp + 0x1c]
push eax
push eax
mov eax, dword [esp + 0x24]
call dword [eax + 0x1c]
mov byte [esp + 0x178], 0
lea eax, [esp + 0x14]
push eax
call fcn.00482904
mov eax, edi
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00536476
mov esp, ebp
pop ebp
ret
Function at 0x484a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x484a77
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x484aac
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x484aa8
cmp edi, eax
jae 0x484aac
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x484a9a
cmp edi, eax
jb 0x484ab0
xor eax, eax
jmp 0x484aba
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4882ee
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x585e5b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
push esi
push edi
mov eax, dword [0x67d978]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
mov esi, ecx
push str.tv_w32.dll
lea ecx, [esp + 0x10]
call fcn.00414eb2
and dword [esp + 0xf8], 0
lea edx, [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.004639f9
mov byte [esp + 0xf8], 1
mov ecx, eax
call fcn.0047693e
mov dword [esi + 0xd0], eax
mov byte [esp + 0xf8], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0041382c
or dword [esp + 0xf8], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00411efe
mov eax, dword [esi + 0xd0]
test eax, eax
jne 0x48839c
push str.MachineHooks:_Library_not_found
call fcn.0042e877
jmp 0x488493
push str.GetTeamViewerInterface
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4883b6
call fcn.004834b0
jmp 0x488493
call eax
test eax, eax
mov dword [esi + 0xd4], eax
je 0x488489
mov eax, dword [eax]
cmp dword [eax], 0x1b58
jne 0x488489
call dword [eax + 4]
sub eax, 5
je 0x488482
dec eax
je 0x488476
dec eax
je 0x48846f
dec eax
je 0x488468
call fcn.004881d0
test al, al
jne 0x48840a
mov edi, dword [esi + 0xd4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [edi + 0x2c]
mov eax, dword [esi + 0xd4]
mov ecx, dword [0x6b56b4]
mov esi, dword [eax]
mov eax, dword [ecx]
push 0x6ae430
call dword [eax + 0x2c]
neg al
sbb eax, eax
and eax, 0xffffff9c
add eax, 0xc8
push eax
call dword [esi + 0x18]
push str.MachineHooks:_Initialized_Shm
lea eax, [esp + 0x48]
push eax
call fcn.00409f00
mov dword [esp + 0xf8], 2
push eax
call fcn.00401000
or dword [esp + 0xf8], 0xffffffff
lea eax, [esp + 0x44]
push eax
call fcn.00402184
mov al, 1
jmp 0x488495
call fcn.0048922d
jmp 0x488493
call fcn.00489278
jmp 0x488493
push str.MachineHooks:_Could_not_Connect_to_Shared_Memory:_No_Segment
call fcn.0042e877
jmp 0x488493
push str.MachineHooks:_Could_not_Connect_to_Shared_Memory:_No_Mapping
jmp 0x48847b
push str.MachineHooks:_Library_Version_Mismatch
call fcn.0042e877
xor al, al
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49148d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0
mov eax, 0x563d37
call fcn.0053d79c
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
add ecx, 2
movzx eax, byte [ecx - 1]
movzx edx, byte [ecx - 2]
imul eax, eax, 0x3b
imul edx, edx, 0xb
add eax, edx
movzx edx, byte [ecx]
imul edx, edx, 0x1e
add eax, edx
cdq
push 0x64
pop edi
idiv edi
add ecx, 4
sar eax, 4
mov byte [esi + 0x68a6a0], al
inc esi
cmp esi, 0x100
jl 0x4914a4
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 8]
push eax
call fcn.00405946
call fcn.0053d874
ret
Function at 0x49d4df
Capabilities:
Get keyboard layout

Disassembly:
push 0xb0
mov eax, 0x581d2a
call fcn.0053d79c
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edi + 0x10c]
mov dword [edi + 0x100], ebx
mov byte [edi + 0x104], bl
mov dword [eax], ebx
mov dword [ebp - 0x14], eax
mov dword [eax + 4], ebx
mov dword [ebp - 4], 2
mov dword [0x68aaa0], ebx
mov byte [0x68bf67], bl
call fcn.00463055
cmp eax, 6
push ebx
push dword [0x68aaa0]
setg al
mov byte [0x68bf65], al
lea esi, [edi + 0x108]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [esi], eax
push 0x629e80
lea eax, [ebp - 0xbc]
push eax
call fcn.00409f00
mov byte [ebp - 4], 3
push esi
mov esi, eax
call fcn.0049e5a4
push eax
call fcn.00401000
mov byte [ebp - 4], 2
lea eax, [ebp - 0xbc]
push eax
call fcn.00402184
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.0053d874
ret 4
Function at 0x49d865
Capabilities:
Get keyboard layout

Disassembly:
push 0xa8
mov eax, 0x581cdc
call fcn.0053d79c
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x49d8a3
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call edi
push eax
call ebx
mov esi, eax
mov edi, dword [ebp + 8]
add edi, 0x108
cmp dword [edi], esi
je 0x49d8f5
test esi, esi
je 0x49d8f5
push 0x100
push esi
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
push str.Changing_keyboard_layout_to:__1_
lea eax, [ebp - 0xb4]
push eax
mov dword [edi], esi
call fcn.00409f00
and dword [ebp - 4], 0
push edi
mov esi, eax
call fcn.0049e5a4
push eax
call fcn.00401000
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb4]
push eax
call fcn.00402184
call fcn.0053d874
ret 4
Function at 0x49d8fd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x67d978]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
push dword [esi + 0x108]
push dword [ebp + 8]
call dword [0x689590]
movzx edi, ax
cmp di, 0xffff
jne 0x49d934
mov al, 1
jmp 0x49da6c
push ebx
movsx ebx, di
test ebx, ebx
jne 0x49d941
mov byte [ebp - 0xe], bl
jmp 0x49d94a
push ebx
call fcn.0049deeb
mov byte [ebp - 0xe], al
mov ecx, edi
sar ecx, 8
test cl, 8
je 0x49d95b
xor al, al
jmp 0x49da6b
mov al, cl
and al, 1
mov byte [esi + 0x14], 0
mov dl, 0x80
jne 0x49d980
test byte [esi + 0x10], dl
je 0x49d980
mov byte [esi + 0x10], 0
mov byte [esi + 0xa1], 0
mov byte [esi + 0xa0], 0
jmp 0x49d998
test al, al
je 0x49d998
test byte [esi + 0x10], dl
jne 0x49d998
mov byte [esi + 0xa0], dl
mov byte [esi + 0xa1], dl
mov byte [esi + 0x10], dl
mov al, cl
and al, 2
jne 0x49d9b4
test byte [esi + 0x11], dl
je 0x49d9b4
mov byte [esi + 0x11], al
mov byte [esi + 0xa3], al
mov byte [esi + 0xa2], al
jmp 0x49d9cc
test al, al
je 0x49d9cc
test byte [esi + 0x11], dl
jne 0x49d9cc
mov byte [esi + 0x11], dl
mov byte [esi + 0xa3], dl
mov byte [esi + 0xa2], dl
and cl, 4
jne 0x49d9e7
test byte [esi + 0x12], dl
je 0x49d9e7
mov byte [esi + 0x12], cl
mov byte [esi + 0xa5], cl
mov byte [esi + 0xa4], cl
jmp 0x49d9ff
test cl, cl
je 0x49d9ff
test byte [esi + 0x12], dl
jne 0x49d9ff
mov byte [esi + 0x12], dl
mov byte [esi + 0xa5], dl
mov byte [esi + 0xa4], dl
and word [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
mov edi, dword [0x689564]
push ebx
mov byte [ebp - 0xd], 0
call edi
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
movzx eax, ax
push esi
push eax
movzx eax, bl
mov ebx, dword [sym.imp.USER32.dll_ToUnicode]
push eax
call ebx
cmp byte [ebp - 0xe], 0
je 0x49da51
push 0
push 0x20
call edi
push 0
push 4
lea ecx, [ebp - 0xc]
push ecx
movzx eax, ax
push esi
push eax
push 0x20
call ebx
cmp eax, 1
jne 0x49da61
movzx eax, word [ebp - 0xc]
cmp eax, dword [ebp + 8]
sete byte [ebp - 0xd]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, byte [ebp - 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00536476
leave
ret 4

Function at 0x49e0cb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0xa0
mov dword [ebp - 0x1c], 0xa1
mov dword [ebp - 0x18], 0xa2
mov dword [ebp - 0x14], 0xa3
mov dword [ebp - 0x10], 0xa4
mov dword [ebp - 0xc], 0xa5
mov dword [ebp - 8], 0x5b
mov dword [ebp - 4], 0x5c
call fcn.0049e370
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x28]
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x49e13d
push 0
push 1
mov eax, esi
call fcn.0049dfc6
pop ecx
pop ecx
inc edi
cmp edi, 0xa
jb 0x49e120
pop edi
pop esi
leave
ret
Function at 0x49e173
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xc
mov eax, 0x581cb4
call fcn.0053d79c
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, 0x90
cmp eax, esi
mov dword [edi], eax
mov byte [edi + 6], 0
mov byte [edi + 7], 0
je 0x49e239
cmp eax, 0x14
je 0x49e239
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push eax
call esi
shr eax, 0xf
and al, 1
cmp al, byte [ebp + 0xc]
mov byte [edi + 4], al
je 0x49e2ba
mov ecx, dword [edi]
cmp ecx, 0x10
je 0x49e1e4
cmp ecx, 0x11
je 0x49e1e4
cmp ecx, 0x12
je 0x49e1e4
push 0
push eax
mov byte [edi + 6], 1
mov eax, ecx
call fcn.0049dfc6
pop ecx
pop ecx
jmp 0x49e2ba
lea ebx, [ecx + ecx + 0x80]
push ebx
call esi
shr eax, 0xf
and al, 1
cmp al, byte [ebp + 0xc]
mov byte [edi + 4], al
je 0x49e20b
push 0
push eax
mov eax, ebx
mov byte [edi + 6], 1
call fcn.0049dfc6
pop ecx
pop ecx
lea eax, [ebx + 1]
push eax
mov dword [ebp + 8], eax
call esi
shr eax, 0xf
and al, 1
cmp al, byte [ebp + 0xc]
mov byte [edi + 5], al
je 0x49e2ba
cmp ebx, 0xa0
setne cl
mov byte [edi + 7], 1
push ecx
push eax
mov eax, dword [ebp + 8]
jmp 0x49e1d8
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push eax
call ebx
and al, 1
cmp al, byte [ebp + 0xc]
je 0x49e2ba
mov eax, dword [edi]
cmp eax, esi
sete cl
mov byte [ebp + 8], cl
push dword [ebp + 8]
mov byte [edi + 6], 1
push 0
call fcn.0049dfc6
push dword [ebp + 8]
mov eax, dword [edi]
push 1
call fcn.0049dfc6
add esp, 0x10
cmp dword [edi], 0x14
jne 0x49e2ba
cmp byte [ebp + 0xc], 0
jne 0x49e2ba
push 0x14
call ebx
test al, 1
je 0x49e2ba
push 0
mov esi, 0xa0
push esi
lea ecx, [ebp - 0x18]
call fcn.0049e173
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
mov eax, esi
call fcn.0049dfc6
push ebx
push 1
mov eax, esi
call fcn.0049dfc6
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.0049e2c4
mov eax, edi
call fcn.0053d874
ret 8

Function at 0x4a7504
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0xac]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret