joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bb30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47063f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
mov dword [esp + 8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 0x473a04
mov dword [esp + 0x10], 0x4739fc
mov dword [esp + 8], eax
call fcn.004036ad
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
call fcn.004036ad
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004036ad
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 2
call fcn.004036ad
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 3
call fcn.004036ad
mov dword [esp + 0x18], 0x473a0c
mov dword [esp + 0x30], 0
mov dword [esp + 8], 1
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 4
call fcn.004037f2
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 5
call fcn.00403830
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x48]
push edi
mov byte [esp + 0x40], 6
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x10], 0x4739e8
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0xc]
mov dword [esp + eax + 0xc], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x10]
call fcn.00439930
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], 7
lea eax, [ecx - 2]
cmp eax, 0x9f
ja case.0x43bc43.6
xor edx, edx
mov dl, byte [eax + 0x43bd38]
jmp dword [edx*4 + 0x43bd24]
push 0
push 0
push 0
push str.XERR_OUTOFMEMORY
jmp 0x43bcb6
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x48]
push eax
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x10]
call fcn.00439cd0
mov eax, dword [eax]
push 0
push 0
push eax
push str.XERR_FILEBADPATH
mov ecx, esi
mov byte [esp + 0x4c], 8
call fcn.0043c740
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 7
call fcn.0045dde6
jmp 0x43bcbd
push 0
push 0
push edi
push str.XERR_FILENOTFOUND
jmp 0x43bcb6
push 0
push 0
push edi
push str.XERR_EXECBADEXEC
jmp 0x43bcb6
push 0
push 0
push edi
push str.XERR_FILEGENERIC
mov ecx, esi
call fcn.0043c740
lea eax, [esp + 0x18]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0xc
call fcn.0045dde6
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xb
call fcn.0045dde6
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0xa
call fcn.0045dde6
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 9
call fcn.0045dde6
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0045dde6
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x43c130
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c167
call fcn.0043bde0
call fcn.0044dd16
mov eax, dword [eax]
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
xor eax, eax
mov dword [ecx], edx
pop ecx
ret
Function at 0x43c1f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43c211
call fcn.0043bde0
call fcn.0044dd16
mov eax, dword [eax]
pop esi
ret
test al, 0x10
je 0x43c21a
mov esi, 0x10
test al, 2
je 0x43c221
or esi, 2
test al, 1
je 0x43c228
or esi, 1
test al, 4
je 0x43c22f
or esi, 4
test al, 0x20
je 0x43c236
or esi, 0x20
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [ecx], esi
pop esi
ret

Function at 0x43c240
Capabilities:
Set file attributes

Disassembly:
mov cl, byte [esp + 8]
xor eax, eax
test cl, 0x10
je 0x43c250
mov eax, 0x10
test cl, 2
je 0x43c257
or al, 2
test cl, 1
je 0x43c25e
or al, 1
test cl, 4
je 0x43c265
or al, 4
test cl, 0x20
je 0x43c26c
or al, 0x20
test eax, eax
jne 0x43c275
mov eax, 0x80
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x43c292
call fcn.0043bde0
call fcn.0044dd16
mov eax, dword [eax]
ret
xor eax, eax
ret

Function at 0x44ab27
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44ab52
test byte [esp + 8], 0x80
je 0x44ab41
and al, 0xfe
jmp 0x44ab43
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x44ab63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044dca3
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44b468
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044dca3
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x44b48b
test byte [esp + 8], 2
je 0x44b48b
call fcn.0044dd16
mov dword [eax], 0xd
call fcn.0044dd1f
mov dword [eax], 5
jmp 0x44b464
xor eax, eax
ret
Function at 0x45b080
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0044b330
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45b14b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45b14b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45b0fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45b109
or bh, 8
and edi, 0x8000000
je 0x45b124
mov eax, dword [0x498dfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45b14b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45b54b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45b56f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45b58a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x45fd13
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fd4b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e28d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e265
jmp 0x45fd57
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4614f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461533
call fcn.0046a047
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461533
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46152a
xor eax, eax
jmp 0x46153b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461541
pop edi
pop esi
pop ebx
ret 4

Function at 0x462cc9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4718ac
call fcn.0044a938
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0046a047
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x462d08
call fcn.0046a047
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x462d16
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x462d24
or eax, 0xffffffff
jmp 0x462e0c
mov ecx, esi
call fcn.00462c3f
mov dword [ebp - 0x14], eax
call fcn.0045f862
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x462d5b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x462d5b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0045f816
push dword [ebp - 0x14]
call fcn.0045f348
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004629d7
cmp eax, edi
je 0x462dce
test byte [esi + 0x24], 0x10
je 0x462d9c
push 4
mov ecx, esi
pop ebx
call fcn.00461d98
test ah, 1
je 0x462d94
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00461643
cmp dword [esi + 0x1c], edi
je 0x462dce
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00461eaf
jmp 0x462dce
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x462de2
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x462dfb
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x462dfb
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00462c79
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x46abbf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46abed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ac0b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046ab25
jmp 0x46ac0b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ac0b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046ab25
test edi, edi
mov eax, edi
jne 0x46abf5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10003970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
mov esi, dword [esi + 4]
je 0x100039a8
test esi, esi
je 0x100039ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100039ec
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0xe4], 1
jmp 0x100039cb
test esi, esi
je 0x100039ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100039ec
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0xe4], 0
cmp dword [0x100b6000], 0
je 0x100039ec
push 0x1c1f6f8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x100b6000], 0
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10005a50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, eax
cmp dword [eax + 0x14], 0xf
jbe 0x10005a62
mov esi, dword [eax]
mov edi, dword [eax + 0x10]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x10005a81
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10005a70
pop edi
mov eax, edx
pop esi
pop ebp
ret 4
Function at 0x10005b10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100891c5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0xf
jbe 0x10005b47
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10005b65
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x10005b53
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.10005d70
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10005b96
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x7ffffff
je 0x10005cc8
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x18], 0
call fcn.1005a8bb
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.10004d90
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1009f6d0]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x1009f6d0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x10005c6a
divss xmm0, xmm3
call fcn.10005ed0
call fcn.10088410
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10005c4e
cmp eax, 0x200
jae 0x10005c4c
shl eax, 3
cmp eax, ecx
jae 0x10005c4e
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10005280
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10005d70
mov edx, dword [eax]
jmp 0x10005c6d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x10005c95
mov dword [ecx + eax*8], edi
jmp 0x10005ca7
cmp esi, edx
jne 0x10005c9e
mov dword [ecx + eax*8], edi
jmp 0x10005cab
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10005cab
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.10044309
int3
Function at 0x10005e90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x10005ebb
mov edx, dword [ebp + 8]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10005ea4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x10008a90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call fcn.10006650
test eax, eax
je 0x10008bc1
mov ecx, esi
call fcn.1000b4b0
lea edi, [esi + 0x3c]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
movsx ecx, byte [edi + 0x10]
sar ecx, 0x1f
and ecx, 0x10000
mov edx, ecx
or edx, 0x20000
test byte [edi + 0x14], 1
cmove edx, ecx
mov eax, edx
or eax, 0x40000
cmp byte [edi + 0x11], 0
cmovge eax, edx
mov ecx, eax
or ecx, 0x80000
cmp byte [edi + 0x12], 0
cmovge ecx, eax
mov eax, ecx
or eax, 0x40000000
test ebx, ebx
cmovns eax, ecx
mov ecx, dword [ebp + 8]
mov edx, eax
mov dword [ebp + 0xc], edx
cmp ecx, 0x14
jne 0x10008b1f
mov dword [ebp + 0xc], edx
test ebx, ebx
js 0x10008b1f
xor edx, 0x20000
mov dword [ebp + 0xc], edx
push ebx
call fcn.100085f0
add esp, 4
test eax, eax
je 0x10008b31
movzx eax, ax
jmp 0x10008b74
push 0
push 0
push 8
push 0x100b61b8
push 0x100b60b8
mov esi, edi
mov ecx, 0x40
push ebx
push dword [ebp + 8]
mov edi, 0x100b60b8
rep movsd dword es:[edi], dword [esi]
mov word [0x100b60c9], 0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x10008bb8
movzx eax, word [0x100b61b8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0x180]
or edx, eax
cmp dword [ecx + 0x38], 0xffffffff
je 0x10008ba8
cmp dword [ecx], 0
je 0x10008ba8
push dword [ecx]
push edx
push 0x8004
call fcn.1000c1d0
neg eax
sbb ecx, ecx
mov eax, dword [ebp + 0x10]
neg ecx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100099f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10089640
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100b0040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x26c]
push eax
push dword [0x100b5ffc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x270], 0
lea eax, [ebp - 0x270]
mov dword [ebp - 4], 0
push eax
push 0x1009db64
push 0x17
push 0
push 0x10090600
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10009bbc
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x278]
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 0x284], esi
push edi
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10009b60
mov esi, 0xe0200c04
nop
cmp esi, 0xe0ff0c04
ja 0x10009b5a
push esi
push str._08X
lea eax, [ebp - 0x24]
push 9
push eax
call fcn.10009970
add esp, 0x10
lea eax, [ebp - 0x274]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009b44
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x40
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push str.Ime_File
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009b44
cmp dword [ebp - 0x280], 1
jne 0x10009b44
lea eax, [ebp - 0x64]
push str.TypeDuck.ime
push eax
call fcn.1006eab3
add esp, 8
test eax, eax
cmove edi, esi
push dword [ebp - 0x274]
call ebx
add esi, 0x10000
test edi, edi
je 0x10009ab0
mov esi, dword [ebp - 0x284]
push dword [ebp - 0x278]
call ebx
push 0
mov eax, dword [esi]
lea ecx, [ebp - 0x26c]
push 1
push 0
push edi
push 0
push dword [ebp - 0x288]
push ecx
push 8
push 0x1009db38
push 0x1009d7e4
push 0xc04
push 0x1009d7f4
push esi
call dword [eax + 0x20]
test eax, eax
js 0x10009bbc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x10009bb5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x10009bd5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x10009bd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005a767
mov esp, ebp
pop ebp
ret
Function at 0x10009c60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x100b0040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0x100
lea ecx, [esp + 0xc]
mov eax, edx
push ecx
push eax
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x10009cb5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1005a767
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
xor esi, esi
lea eax, [esp + 0x14]
push esi
push esi
push esi
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x10009d20
nop word [eax + eax]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov byte [esp + 0x11f], 0
call fcn.10009c60
mov esi, eax
test esi, esi
jne 0x10009d20
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x10009ce0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10009d3b
push dword [esp + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005a767
mov esp, ebp
pop ebp
ret