joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5ff3
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
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x4f60b1
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4f60a6
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4f60a6
neg eax
sbb eax, eax
and eax, ecx
cmp dword [ebx], eax
jne 0x4f60a6
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4f607a
sub eax, 1
je 0x4f6046
sub eax, 1
jne 0x4f60a6
mov edi, 0x428e
jmp 0x4f607f
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4f607f
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call fcn.0054ada1
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4f607f
add edi, 3
jmp 0x4f607f
mov edi, 0x3ea0
push edi
call fcn.004119d7
test eax, eax
je 0x4f60b1
push edi
push eax
mov ecx, 0x631dd0
call fcn.00410fdc
test eax, eax
je 0x4f60b1
mov eax, dword [0x631dd0]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
jmp 0x4f60a8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00411749
int3

Function at 0x5014d6
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x501525
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00554749
xor edx, edx
mov dword [ebp - 4], 0xa
pop ecx
mov ecx, eax
div dword [ebp - 4]
inc eax
test ecx, ecx
je 0x50151a
mov edx, ecx
movzx ecx, word [esi + edi*2]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x501508
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00411749
int3
Function at 0x53dc54
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x53dc8f
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x53dc76
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x53dc87
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x53dc91
inc edi
add eax, 0x28
cmp edi, esi
jb 0x53dc6c
xor eax, eax
pop edi
pop esi
ret

Function at 0x53de06
Capabilities:
Enumerate pe sections

Disassembly:
xor ebx, ebx
cmp eax, ebx
je 0x53e40d
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.0053dc14
pushal
push 0xffffffffffffffb5
jge 0x53de39
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.0053dc14
mov esi, 0x665db729
mov eax, dword [edi + 6]
cmp ax, bx
jbe 0x53de6e
test dword [edi + edi*8 - 1], ecx
dec dword [ecx - 0x311707bb]
std
invalid
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x53de68
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x53de59
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0053dc14
mov esp, dword [esi]
adc byte [esi - 0x73], ah
lea ax, [ebp - 0x58]
push eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53debb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ax, [ebp - 0x58]
push eax
call fcn.0053dc24
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0053dbd9
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x53df02
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0053dc14
sub cl, ch
add eax, 0xc0458d73
push eax
call fcn.0053dc24
push eax
push esi
push dword [ebp + 8]
call fcn.0053dbd9
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.0053dc14
inc edi
lahf
cmp ecx, esp
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], bl
push eax
invalid
pop ebp

Function at 0x53e2c5
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0xeb
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x53e2eb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x53e309
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x53e367
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x53e34e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x53e357
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x53e361
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x53e343
inc dword [ebp + 0xc]
invalid
test dword [eax - 1], edi
Function at 0x53e2ec
Capabilities:
Inspect section memory permissions

Disassembly:
add al, 0xeb
test eax, 0xeb0c5d89
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x53e2eb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x53e309
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x53e367
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x53e34e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x53e357
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x53e361
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x53e343
inc dword [ebp + 0xc]
invalid
test dword [eax - 1], edi

Function at 0x53f8fb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
cmp dword [ebp - 0x6fc], 3
jne 0x53f99e
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.0053dc24
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0053db85
add esp, 0xc
jmp 0x53fb8c
cmp dword [ebp - 0x6fc], 4
jne 0x53fa48
and byte [ebp - 0x7bc], 0
and byte [ebp - 0x7bb], 0
mov byte [ebp - 0x7ba], 2
invalid
inc dword [edx]
cmp dword [ebp - 0x6fc], 5
jne 0x53fae9
and byte [ebp - 0x7cc], 0
and byte [ebp - 0x7cb], 0
xor eax, 0xfffff8
mov byte [ebp - 0x7ca], 0x3f
and byte [ebp - 0x7c9], 0
mov byte [ebp - 0x7c8], 0x9c
mov byte [ebp - 0x7c7], 0x90
mov byte [ebp - 0x7c6], 0x93
mov byte [ebp - 0x7c5], 0x81
mov byte [ebp - 0x7c4], 0x90
mov byte [ebp - 0x7c3], 0xac
mov byte [ebp - 0x7c2], 0xee
mov byte [ebp - 0x7c1], 0xa4
mov byte [ebp - 0x7c0], 0xac
mov byte [ebp - 0x7bf], 0xac
mov byte [ebp - 0x7be], 0xc0
push 0xb
lea eax, [ebp - 0x7cc]
push eax
call fcn.0053dc24
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0053db85
add esp, 0xc
jmp 0x53fb8c
cmp dword [ebp - 0x6fc], 6
jne 0x53fb87
and byte [ebp - 0x7dc], 0
and byte [ebp - 0x7db], 0
mov byte [ebp - 0x7da], 0x11
invalid
movsd dword es:[edi], dword [esi]
daa
clc
invalid
invalid
Function at 0x54ba60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x628f58]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x40], edi
lea eax, [edi + 0x3c8]
push eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0054d700
mov ebx, dword [ebp + 0x10]
add esp, 0xc
test ebx, ebx
jle 0x54bbc4
mov edx, dword [ebp + 0xc]
dec ebx
add edx, 2
shr ebx, 4
add esi, 2
mov dword [ebp - 0x38], edx
inc ebx
mov dword [ebp - 0x3c], ebx
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.0054ba40
add esp, 8
xor edi, edi
nop word [eax + eax]
mov al, byte [ebp + edi - 0x34]
xor al, byte [ebp + edi - 0x14]
mov edx, dword [ebp + edi - 0x34]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, ebx
mov byte [esi + 1], al
mov eax, edx
shr ecx, 8
shr eax, 8
xor cl, al
mov eax, edx
mov byte [esi], cl
mov ecx, ebx
shr eax, 0x10
shr ecx, 0x10
xor cl, al
shr ebx, 0x18
mov eax, dword [ebp + edi - 0x24]
shr edx, 0x18
xor bl, dl
mov dword [ebp + edi - 0x34], eax
mov byte [esi - 1], cl
add edi, 4
mov byte [esi - 2], bl
add esi, 4
cmp edi, 0x10
jl 0x54bb60
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x54bab3
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x44]
call fcn.0054d700
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0054a576
mov esp, ebp
pop ebp
ret
Function at 0x5527fe
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5f98cc
push str.FlsAlloc
push 0
call fcn.00552777
mov esi, eax
add esp, 0x10
test esi, esi
je 0x552830
push dword [ebp + 8]
mov ecx, esi
call fcn.0054ada1
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x552872
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5f98f0
push str.FlsGetValue
push 2
call fcn.00552777
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x5528a3
mov ecx, esi
call fcn.0054ada1
call esi
jmp 0x5528a9
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x5528ac
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5f9904
push str.FlsSetValue
push 3
call fcn.00552777
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x5528e0
mov ecx, esi
call fcn.0054ada1
call esi
jmp 0x5528e6
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x569be0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056989f

Function at 0x569beb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00569a22

Function at 0x56d7b8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056d0d0

Function at 0x56d7c3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056d30f

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x1ca83e22
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x193f7116
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0xdd9b08
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdd9b12
pushal
call 0xdd9b18
pop ebp
sub ebp, 0x10
sub ebp, 0x9d9b08
jmp 0xdd9b2e
mov eax, 0x9d9b08
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a9
mov edx, 0x1c3fe7a8
xor byte [eax], dl
inc eax
dec ecx
jne 0xdd9b45
jmp 0xdd9b58
and esp, dword [ebp + 0x23]
and dword [eax + ebp*4 + 0x6929a8a8], edx
push eax
test al, 0xa8
test al, 0xab
adc byte gs:[eax + ebp*4 - 0x7fed5758], ch
adc byte [eax + ebp*4 - 0x7fed5758], ch
test al, 0xa8
test al, 0x5f
dec edx
stosd dword es:[edi], eax
pushal
and ebp, dword [ecx]
movsb byte es:[edi], byte [esi]
test al, 0xa8
test al, 0xab
insd dword es:[edi], dx
clc
clc
sal byte [eax], 0x1d
mov dword [eax - 0x2cb22740], ebp
test al, 0xa9
test byte [eax + eax*8 + 0x23fac055], cl
inc eax
lodsd eax, dword [esi]
test al, 0xa8
test al, 0x41
xchg byte [eax - 0x33da5758], ch
mov word [ecx - 0x7c], ss
mov word [ebx], fs
inc esp
and ebp, dword [0xa8a8a8a0]
and edi, dword [0xa8a8a8a4]
and esp, dword [0xa8a8a8b8]
imul eax, dword [ecx - 0x56], 0x6a2baa99
lodsb al, byte [esi]
loope 0xdd9b68
sub eax, 0x5757575c
cmc
push 0xffffffffffffffa4
test al, 0x23
and al, 0x8c
lodsb al, byte [esi]
test al, 0xa8
test al, 0xc0
xor byte [0xd8c0a889], bl
dec ebp
shr dword [eax + 0x258c84a9], cl
int3
Function at 0x1001bdd
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x2000000
push esi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
cmp edi, ebx
jne 0x1001c2b
push esi
push ebx
push ebx
push 0x1001310
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
cmp edi, ebx
jne 0x1001c2b
mov esi, dword [ebp + 8]
mov word [esi], bx
mov word [esi + 0x258], bx
mov dword [esi + 0x4b0], ebx
xor eax, eax
jmp 0x1001cc8
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x12c
lea ebx, [esi + 0x258]
push ebx
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x1001300
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001c6e
mov dword [esi + 0x4b0], 1
jmp 0x1001cbb
push 0x1001310
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001c88
mov dword [esi + 0x4b0], 3
jmp 0x1001cbb
push 0x10012e4
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001ca2
mov dword [esi + 0x4b0], 2
jmp 0x1001cbb
push 0x10012bc
push ebx
call edi
neg eax
sbb eax, eax
neg eax
pop ecx
add eax, 4
pop ecx
mov dword [esi + 0x4b0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x1001cd0
xor eax, eax
mov word [esi], bx
inc eax
mov dword [esi + 0x4b4], ebx
jmp 0x1001d47
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x10012ac
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001cfc
mov dword [esi + 0x4b4], 2
jmp 0x1001d44
lea eax, [ebp - 8]
push eax
push 0xb
push esi
push ebx
mov dword [esi + 0x4b4], ebx
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x1001d44
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
sub eax, ebx
je 0x1001d38
dec eax
je 0x1001d2c
mov dword [esi + 0x4b4], 2
jmp 0x1001d3e
mov dword [esi + 0x4b4], 1
jmp 0x1001d3e
mov dword [esi + 0x4b4], ebx
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1002623
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001348
push 0x80000002
call esi
test eax, eax
jne 0x10026c4
lea eax, [ebp - 8]
push eax
push edi
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x100266d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10026c4
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001324
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10026b4
cmp dword [ebp - 0x10], 1
jne 0x10026b4
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
jmp 0x10026c6
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x10026d1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001348
push 0x80000002
call esi
test eax, eax
je 0x1002701
xor eax, eax
jmp 0x1002753
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100271e
xor esi, esi
jmp 0x100274c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10013e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002745
xor esi, esi
inc esi
cmp dword [ebp - 0xc], esi
je 0x1002747
xor esi, esi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x100289c
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2224
call fcn.01005380
mov eax, dword [0x100702c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
push 0x2000
lea eax, [ebp - 0x2224]
push eax
mov dword [edi], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10029b0
shr dword [ebp - 0x210], 2
je 0x10029aa
push esi
lea esi, [ebp + ebx*4 - 0x2224]
push dword [esi]
call fcn.010025b0
test eax, eax
je 0x100298b
mov esi, dword [esi]
cmp dword [ebp - 0x21c], esi
je 0x100298b
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100298b
lea eax, [ebp - 0x224]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1002984
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x1002984
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x100299a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x210]
jb 0x1002905
jmp 0x10029a9
mov eax, dword [ebp + ebx*4 - 0x2224]
mov dword [edi], esi
mov dword [ebp - 0x214], eax
pop esi
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0100508f
leave
ret 8