joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eca0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x454670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ecdd
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b181
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
push edi
je 0x40ed07
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
lea edx, [ebp - 0x144]
push edx
push esi
call edi
test eax, eax
je 0x40ed23
test byte [ebp - 0x144], 0x10
jne 0x40ecf0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b181
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b181
mov esp, ebp
pop ebp
ret

Function at 0x40ed70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x454670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40edad
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b181
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
push edi
jne 0x40edd7
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
lea edx, [ebp - 0x144]
push edx
push esi
call edi
test eax, eax
je 0x40edf3
test byte [ebp - 0x144], 0x10
je 0x40edc0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b181
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b181
mov esp, ebp
pop ebp
ret
Function at 0x40f480
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00401636
add esp, 4
test eax, eax
jne 0x40f49c
mov eax, 1
pop esi
pop ebp
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
ret

Function at 0x40f4c0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x454670]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0041b8c0
push edi
push esi
lea ecx, [ebp - 0x20c]
push str._s_s
push ecx
call fcn.0041b190
add esp, 0x1c
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f5a9
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.0041b8c0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea esp, [esp]
test byte [ebp - 0x34c], 0x10
jne 0x40f590
lea edx, [ebp - 0x320]
push edx
push esi
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.0041b190
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x108]
push ecx
call ebx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f550
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b181
mov esp, ebp
pop ebp
ret
Function at 0x40f870
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x454670]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x213]
push 0
push eax
mov byte [ebp - 0x214], 0
call fcn.0041b8c0
push 0x44ab74
push edi
lea ecx, [ebp - 0x214]
push str._s_s
push ecx
call fcn.0041b190
add esp, 0x1c
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40f9ef
push 0x104
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov byte [ebp - 0x10c], 0
call fcn.0041b8c0
add esp, 0xc
jmp 0x40f900
test byte [ebp - 0x354], 0x10
je 0x40f9d2
mov ecx, 0x44b140
lea eax, [ebp - 0x328]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40f938
test dl, dl
je 0x40f934
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40f938
add eax, 2
add ecx, 2
test dl, dl
jne 0x40f918
xor eax, eax
jmp 0x40f93d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f9d2
mov ecx, 0x44bbac
lea eax, [ebp - 0x328]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40f970
test dl, dl
je 0x40f96c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40f970
add eax, 2
add ecx, 2
test dl, dl
jne 0x40f950
xor eax, eax
jmp 0x40f975
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f9d2
lea edx, [ebp - 0x328]
push edx
push edi
lea eax, [ebp - 0x10c]
push str._s_s
push eax
call fcn.0041b190
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401924
add esp, 0x14
test eax, eax
je 0x40f9d2
lea edx, [ebp - 0x10c]
push 0x44ab74
push edx
call fcn.00401122
lea eax, [ebp - 0x10c]
push eax
call fcn.00401938
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea edx, [ebp - 0x354]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40f900
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041b181
mov esp, ebp
pop ebp
ret
Function at 0x411300
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44515b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x454670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041a2e0
push 4
mov dword [ebp - 4], 0
call fcn.0041b36f
mov edi, eax
add esp, 4
test edi, edi
je 0x411380
call fcn.00419df2
mov dword [edi], eax
call fcn.00419b33
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041999c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x411376
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004199c4
jmp 0x411382
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b181
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454670]
jne 0x41b18b
repz ret
jmp fcn.0042036b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x422564
call fcn.0041c62d
mov dword [eax], esi
call fcn.0041c61a
push 0x16
pop esi
mov dword [eax], esi
call fcn.00421460
mov eax, esi
jmp 0x4225b9
test dword [ebp + 0xc], 0xfffffff9
jne 0x42254a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x422591
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041c640
pop ecx
call fcn.0041c61a
mov eax, dword [eax]
jmp 0x4225b9
test al, 0x10
jne 0x4225b7
test al, 1
je 0x4225b7
test byte [ebp + 0xc], 2
je 0x4225b7
call fcn.0041c62d
mov dword [eax], 5
call fcn.0041c61a
mov dword [eax], 0xd
jmp 0x422588
xor eax, eax
pop esi
pop ebp
ret
Function at 0x434c37
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x454670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004219a9
and dword [ebp - 0x14], 0
cmp dword [0x456cb0], 0
mov dword [ebp - 0x18], eax
jne 0x434cea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x434d92
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x434d92
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x456cb0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x456cb4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x456cb8], eax
call edi
push eax
call esi
mov dword [0x456cc0], eax
test eax, eax
je 0x434cea
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x456cbc], eax
mov eax, dword [0x456cbc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x434d43
cmp dword [0x456cc0], ecx
je 0x434d43
push eax
call esi
push dword [0x456cc0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x434d43
test ebx, ebx
je 0x434d43
call edi
test eax, eax
je 0x434d3a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x434d3a
test byte [ebp - 8], 1
jne 0x434d43
or dword [ebp + 0x10], 0x200000
jmp 0x434d76
mov eax, dword [0x456cb4]
cmp eax, dword [ebp - 0x18]
je 0x434d76
push eax
call esi
test eax, eax
je 0x434d76
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434d76
mov eax, dword [0x456cb8]
cmp eax, dword [ebp - 0x18]
je 0x434d76
push eax
call esi
test eax, eax
je 0x434d76
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x456cb0]
call esi
test eax, eax
je 0x434d92
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x434d94
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b181
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x158d4111
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x56571a5c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10002340
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008a5a5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x100d0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x1d0]
test ecx, ecx
je 0x100023fb
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0x100bb724
push ecx
call dword [eax]
test eax, eax
js 0x100023fb
mov dword [ebp + 8], 0
mov byte [ebp - 4], 1
lea edx, [ebp + 8]
mov eax, dword [ebp - 0x10]
push edx
push 0x100bb988
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x100023ea
xorps xmm0, xmm0
mov eax, 3
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x20], ax
xor eax, eax
test edi, edi
lea edi, [ebp - 0x20]
push edi
setne al
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esi + 0x10]
push dword [ecx + 0x2c]
push eax
call edx
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
test eax, eax
je 0x100023fb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esi + 0xc]
test edi, edi
je 0x10002463
test esi, esi
je 0x1000246e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000246e
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xfffffffffffffffc
push dword [esi + 4]
push 0x8027
call dword [sym.imp.USER32.dll_NotifyWinEvent]
cmp dword [0x100d553c], 0
mov eax, dword [esi + 0x2b4]
mov eax, dword [eax + 4]
mov byte [eax + 0x4e9], 1
je 0x1000246e
push 0x1330684
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x100d553c], 0
jmp 0x1000246e
test esi, esi
je 0x1000246e
mov ecx, esi
call fcn.10028610
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10002482
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
mov esp, ebp
pop ebp
ret 8

Function at 0x100055c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x100d5570
cmp dword [0x100d5584], 7
cmova eax, dword [0x100d5570]
push esi
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
push 0x20119
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000563f
cmp dword [0x100d5554], 7
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x210]
mov dword [ebp - 8], 4
push eax
push 0
mov ecx, 0x100d5540
cmova ecx, dword [0x100d5540]
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005650
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100d5584], 7
mov eax, 0x100d5570
push esi
cmova eax, dword [0x100d5570]
mov esi, ecx
lea ecx, [ebp - 4]
push ecx
push 0x20106
push 0
push eax
push reloc.d2d1.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100056c4
cmp dword [0x100d5554], 7
lea eax, [esi + 0x210]
push 4
push eax
push 4
mov ecx, 0x100d5540
cmova ecx, dword [0x100d5540]
push 0
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100069d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10003d00
test eax, eax
je 0x10006bb3
mov eax, dword [ebx + 0x1e8]
mov edi, dword [ebp + 8]
and eax, 0xffffefff
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebx + 0x1e8], eax
shr eax, 0xf
test al, 1
je 0x10006a27
cmp edi, 0x14
jne 0x10006a27
push edi
call esi
test ax, ax
jle 0x10006a27
and dword [ebx + 0x1e8], 0xffff7fff
push edi
call fcn.100054f0
cmp dword [ebx + 0x16c], 0
je 0x10006a47
cmp edi, 0x14
jne 0x10006a47
push edi
call esi
test ax, ax
jns 0x10006a47
or dword [ebx + 0x1e8], 0x8000
mov ecx, ebx
call fcn.10018180
lea esi, [ebx + 0x40]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardState]
movsx ecx, byte [esi + 0x10]
sar ecx, 0x1f
and ecx, 0x10000
mov edx, ecx
or edx, 0x20000
test byte [esi + 0x14], 1
cmove edx, ecx
mov eax, edx
or eax, 0x40000
cmp byte [esi + 0x11], 0
cmovge eax, edx
mov edx, dword [ebp + 0xc]
mov ecx, eax
or ecx, 0x80000
cmp byte [esi + 0x12], 0
cmovge ecx, eax
mov eax, ecx
or eax, 0x40000000
test edx, edx
cmovns eax, ecx
mov esi, eax
mov dword [esp + 0xc], esi
cmp edi, 0x14
jne 0x10006abd
mov dword [esp + 0xc], esi
test edx, edx
js 0x10006abd
xor esi, 0x20000
mov dword [esp + 0xc], esi
push edx
mov ecx, edi
call fcn.10006530
add esp, 4
test eax, eax
je 0x10006ad1
movzx eax, ax
jmp 0x10006b17
push 0
push 0
push 8
push 0x100d56fc
push 0x100d5710
push edx
push dword [ebp + 8]
mov ecx, 0x40
lea esi, [ebx + 0x40]
mov edi, 0x100d5710
rep movsd dword es:[edi], dword [esi]
mov word [0x100d5721], 0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x10006baa
movzx eax, word [0x100d56fc]
mov esi, dword [esp + 0xc]
mov ecx, dword [ebx + 0x188]
or esi, eax
cmp dword [ecx + 0x3c], 0xffffffff
je 0x10006b49
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x10006b49
push dword [ecx + 4]
push dword [ecx]
push 0
push esi
push 0x8004
call fcn.1001ad30
or eax, edx
je 0x10006b49
mov eax, 1
jmp 0x10006b4b
xor eax, eax
cmp byte [ebp + 0x14], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x10006bb3
test eax, eax
jne 0x10006bb3
mov eax, dword [ebx + 0x1e8]
shr eax, 2
test al, 1
jne 0x10006bb3
test dword [ebp + 0xc], 0x80000000
jne 0x10006bb3
movzx edi, si
push edi
call fcn.1006c0f0
add esp, 4
test eax, eax
je 0x10006bb3
test esi, 0xc0000
jne 0x10006bb3
mov eax, dword [ebp + 0x10]
or dword [ebx + 0x1e8], 0x20000
mov dword [ebx + 0x204], edi
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000ae80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100d0040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
mov ebx, ecx
lea eax, [ebp - 0x238]
push 0
mov dword [ebp - 0x240], ebx
push eax
mov dword [ebp - 0x240], ebx
call fcn.100627e0
movups xmm0, xmmword [str.SoftwareRimeWeasel]
mov ax, word [0x100bb848]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 8], ax
movups xmm0, xmmword [0x100bb830]
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x248], 0
movq xmm0, qword [0x100bb840]
movq qword [ebp - 0x10], xmm0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0x23c], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x1000af36
lea ecx, [ebp - 0x248]
push ecx
call eax
lea eax, [ebp - 0x244]
push eax
push 0x101
push 0
lea eax, [ebp - 0x30]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000afed
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x238]
mov dword [ebp - 0x240], 0x208
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.WeaselRoot
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x244]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000afad
push dword [ebp - 0x248]
call esi
test edi, edi
jne 0x1000afed
cmp dword [ebp - 0x23c], 1
jne 0x1000afed
cmp word [ebp - 0x238], di
je 0x1000afed
xorps xmm0, xmm0
lea ecx, [ebp - 0x238]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], edi
lea edx, [ecx + 2]
mov dword [ebx + 0x14], edi
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000afe0
jmp 0x1000b01b
xorps xmm0, xmm0
lea ecx, [ebp - 0x238]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
lea edx, [ecx + 2]
mov dword [ebx + 0x14], 0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b010
sub ecx, edx
lea eax, [ebp - 0x238]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10003240
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ca26
mov esp, ebp
pop ebp
ret
Function at 0x100162c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x100d0040]
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 0x10016315
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1005ca26
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 0x10016380
nop word [eax + eax]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov byte [esp + 0x11f], 0
call fcn.100162c0
mov esi, eax
test esi, esi
jne 0x10016380
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 0x10016340
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001639b
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.1005ca26
mov esp, ebp
pop ebp
ret
Function at 0x1001a5d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x100d0040]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov esi, ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], esi
mov dword [esp + 0xc], esi
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [esp + 8]
test eax, eax
je 0x1001a645
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005d652
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [esp + 8], 0
ja 0x1001a67a
push edi
call fcn.1005d64d
add esp, 4
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x100bba20
mov dword [esi + 0x14], 0
call fcn.10003240
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1005ca26
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movaps xmmword [esp + 0x10], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a697
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.10003240
push edi
call fcn.1005d64d
mov ecx, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
add esp, 4
mov dword [esi + 0x10], 0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 0x14], 0
mov eax, esi
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x1c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.1005ca26
mov esp, ebp
pop ebp
ret