joyce8/EMBER2024-capa huggingface dataset:
Function at 0x581aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e6ed0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005df0e4
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x581ad3
xor al, al
jmp 0x581bff
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x581af5
xor al, al
jmp 0x581bff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x581b08
xor al, al
jmp 0x581bff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x581b1c
xor al, al
jmp 0x581bff
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.005d31e3
test eax, eax
jne 0x581b50
xor al, al
jmp 0x581bff
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0xc9444c
mov dword [esp + 0x20], ebp
call fcn.005df0e4
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.005dbd53
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.005dbdaa
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x581be4
mov ax, word [ebx]
test ax, ax
je 0x581bd6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00581c20
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x581bba
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.005dbdaa
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x582180
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.005dd500
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x5821c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.005b7478
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0xd7bec4
push ecx
call fcn.005b8f40
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x592450
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00598860
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x592549
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, esi
call fcn.00514690
test eax, eax
jne 0x592549
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, esi
call fcn.00514690
test eax, eax
jne 0x592549
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.005b8850
mov esi, eax
add esp, 8
test esi, esi
jne 0x59251a
lea eax, [esp + 0x10]
push 0xd7f278
push eax
call fcn.005b8850
mov esi, eax
add esp, 8
test esi, esi
jne 0x59251a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x59251d
mov byte [esi], 0
push 0xd7ea40
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x5987a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5e7c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x598850
mov eax, dword [0xd8b688]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.005d52f2
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.005d5341
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.005d529e
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x598837
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x598837
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.005d4f0e
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x59b950
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5e80f0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x59baf7
mov ecx, dword [0xd8b688]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x59ba4c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0059a670
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005d4ffb
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005d4f0e
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0xd7ea40
call fcn.005d4f7c
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0059aa30
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.005d4ffb
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005d4f0e
lea ecx, [esp + 0xc]
call fcn.005d53d6
mov ecx, dword [esp + 0xc]
push 0xd7f47c
push ecx
call fcn.005b75c4
add esp, 8
test eax, eax
je 0x59ba74
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x59b9ad
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.005d4f0e
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005d4f0e
jmp 0x59bafb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0059b6f0
test eax, eax
push 0
je 0x59badf
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.00599d90
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x59bac5
cmp eax, 0x64
jg 0x59bab3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x59ba50
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x59ba50
cmp eax, 0x64
jge 0x59ba4c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x59ba50
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.00599d90
mov esi, eax
jmp 0x59ba50
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x59bb05
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x5b2470
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x5b24bc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x5b24bc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x5b24a6
push eax
call ebp
test ax, ax
jl 0x5b24b4
inc esi
add edi, 4
cmp esi, 6
jb 0x5b2498
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.005b2170
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5b4af0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x5b4b50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x5b4b50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x5b4b50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x5b4b50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x5b4b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x5d731c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5d7354
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.005d5369
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005d5341
jmp 0x5d7360
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5d8b17
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 0x5d8b59
call fcn.005df0e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5d8b59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5d8b50
xor eax, eax
jmp 0x5d8b61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005d8b67
pop edi
pop esi
pop ebx
ret 4

Function at 0x5df614
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 0x5df642
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5df660
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005df57a
jmp 0x5df660
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5df660
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005df57a
test edi, edi
mov eax, edi
jne 0x5df64a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002380
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push esi
mov eax, dword [eax + 4]
mov esi, dword [eax + 8]
je 0x100023c1
test esi, esi
je 0x1000240e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000240e
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x2b0]
mov eax, dword [eax + 4]
mov byte [eax + 0x4d9], 1
jmp 0x100023ed
test esi, esi
je 0x1000240e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000240e
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x2b0]
mov eax, dword [eax + 4]
mov byte [eax + 0x4d9], 0
cmp dword [0x100ce5b4], 0
je 0x1000240e
push 0x1330684
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [0x100ce5b4], 0
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10005990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0x100ce5d0
cmp dword [0x100ce5e4], 8
cmovae eax, dword [0x100ce5d0]
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 0x10005a0f
cmp dword [0x100ce5cc], 8
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x208]
mov dword [ebp - 8], 4
push eax
push 0
mov ecx, 0x100ce5b8
cmovae ecx, dword [0x100ce5b8]
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 0x10005a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100ce5e4], 8
mov eax, 0x100ce5d0
push esi
cmovae eax, dword [0x100ce5d0]
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 0x10005a94
cmp dword [0x100ce5cc], 8
lea eax, [esi + 0x208]
push 4
push eax
push 4
mov ecx, 0x100ce5b8
cmovae ecx, dword [0x100ce5b8]
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 0x10007010
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x100c9018]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
mov dword [esp + 0x10], edi
call fcn.10004360
test eax, eax
je 0x1000726b
mov ecx, ebx
call fcn.10019370
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 ecx, dword [ebp + 8]
mov esi, eax
mov dword [esp + 0xc], esi
cmp ecx, 0x14
jne 0x100070b6
mov dword [esp + 0xc], esi
test edx, edx
js 0x100070b6
xor esi, 0x20000
mov dword [esp + 0xc], esi
push edx
call fcn.10006b70
add esp, 4
test eax, eax
je 0x100070c8
movzx eax, ax
jmp 0x10007112
push 0
push 0
push 8
push 0x100ce760
push 0x100ce770
push edx
push dword [ebp + 8]
mov ecx, 0x40
lea esi, [ebx + 0x40]
mov edi, 0x100ce770
rep movsd dword es:[edi], dword [esi]
mov word [0x100ce781], 0
call dword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 1
jne 0x10007261
movzx eax, word [0x100ce760]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x188]
or esi, eax
cmp dword [ecx + 0x3c], 0xffffffff
je 0x10007144
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x10007144
push dword [ecx + 4]
push dword [ecx]
push 0
push esi
push 0x8004
call fcn.1001b990
or eax, edx
je 0x10007144
mov eax, 1
jmp 0x10007146
xor eax, eax
mov dword [edi], eax
cmp esi, 0xffe5
je 0x100071e0
cmp esi, 0x4002ffe5
jne 0x100071f3
mov ecx, dword [ebx + 0x1e4]
mov eax, ecx
shr eax, 0x10
test al, 1
je 0x100071f3
push 0x1c
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
and ecx, 0xfffeffff
mov dword [esp + 0x20], 0x140014
push 2
mov dword [ebx + 0x1e4], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x140014
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x100071f3
cmp dword [ebx + 0x16c], 0
je 0x100071f3
or dword [ebx + 0x1e4], 0x10000
cmp byte [ebp + 0x14], 0
jne 0x1000726b
cmp dword [edi], 0
jne 0x1000726b
test dword [ebp + 0xc], 0x80000000
jne 0x1000726b
movzx eax, si
push eax
mov dword [esp + 0x10], eax
call fcn.1006aa80
add esp, 4
test eax, eax
jne 0x1000722b
push dword [esp + 0xc]
call fcn.1006aba0
add esp, 4
test eax, eax
je 0x1000726b
test esi, 0xc0000
jne 0x1000726b
or dword [ebx + 0x1e4], 0x40000
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x200], eax
mov dword [edi], 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1005b43f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1005b43f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000b9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100c9018]
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.10061310
movups xmm0, xmmword [str.SoftwareRimeWeasel]
mov ax, word [0x100b4edc]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 8], ax
movups xmm0, xmmword [0x100b4ec4]
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x248], 0
movq xmm0, qword [0x100b4ed4]
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 0x1000ba56
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 0x1000bb0d
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 0x1000bacd
push dword [ebp - 0x248]
call esi
test edi, edi
jne 0x1000bb0d
cmp dword [ebp - 0x23c], 1
jne 0x1000bb0d
cmp word [ebp - 0x238], di
je 0x1000bb0d
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 0x1000bb00
jmp 0x1000bb3b
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 0x1000bb30
sub ecx, edx
lea eax, [ebp - 0x238]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.10003770
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b43f
mov esp, ebp
pop ebp
ret
Function at 0x10016f10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x100c9018]
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 0x10016f65
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1005b43f
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 0x10016fd0
nop word [eax + eax]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov byte [esp + 0x11f], 0
call fcn.10016f10
mov esi, eax
test esi, esi
jne 0x10016fd0
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 0x10016f90
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10016feb
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.1005b43f
mov esp, ebp
pop ebp
ret
Function at 0x100197d0
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
test esi, esi
je 0x100197fb
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100197e4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x1001b230
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x100c9018]
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 0x1001b2a5
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005c06b
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 0x1001b2da
push edi
call fcn.1005c066
add esp, 4
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
push 0x100b508c
mov dword [esi + 0x14], 0
call fcn.10003770
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1005b43f
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 0x1001b2f7
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x18]
call fcn.10003770
push edi
call fcn.1005c066
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.1005b43f
mov esp, ebp
pop ebp
ret
Function at 0x1001b990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100c9018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], ecx
lea ecx, [esi + 0x24]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
call fcn.1001ecb0
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x3c]
lea ecx, [esi + 0x24]
call fcn.1001bfa0
mov ebx, dword [esi + 0x3c]
lea eax, [ebp + 8]
push 0
push eax
push 8
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001ba47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1001ba83
push dword [esi + 0x44]
push 0
push dword [esi + 0x48]
call fcn.10061310
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push dword [esi + 0x44]
push dword [esi + 0x48]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ba94
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov byte [esi + 0x40], 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 0x14
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x100c4c98
push eax
call fcn.10060d1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0x100c4c98
push eax
call fcn.10060d1b
int3