joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cf320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf3f0
push 0xffffffffffffffff
push 0x100e4e88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf429
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf436
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf49d
jmp 0x100cf46c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf4da
test edi, edi
jne 0x100cf4e0
push 0x100ceff0
push 0x100e7680
call fcn.100cec90
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf49d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf4c6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf4c6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf518
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf509
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf4e0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf460
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf577
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf55c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf577
jmp 0x100cf550
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf550
jmp 0x100cf577
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf575
cmp esi, dword [eax + 8]
jne 0x100cf575
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf565
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf58b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf58b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cf020
cmp esi, ebx
jne 0x100cf530
mov ebp, dword [esp + 0x14]
jmp 0x100cf460
Function at 0x100cf3f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100cf3f0
push 0xffffffffffffffff
push 0x100e4e88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10001840]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100026c8]
cmp eax, 0xffffffff
jne 0x100cf429
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x100cf436
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x100cf49d
jmp 0x100cf46c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x100cf4da
test edi, edi
jne 0x100cf4e0
push 0x100ceff0
push 0x100e7680
call fcn.100cec90
mov eax, dword [0x100026c8]
add esp, 8
cmp eax, 0xffffffff
je 0x100cf49d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x100cf4c6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x100cf4c6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x100cf518
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100cf509
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100cf4e0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x100cf460
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x100cf577
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x100cf55c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x100cf577
jmp 0x100cf550
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x100cf550
jmp 0x100cf577
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100cf575
cmp esi, dword [eax + 8]
jne 0x100cf575
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100cf565
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x100cf58b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x100cf58b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.100cf020
cmp esi, ebx
jne 0x100cf530
mov ebp, dword [esp + 0x14]
jmp 0x100cf460
Function at 0x1002c27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x100111c]
test eax, eax
je 0x1002c81
push esi
push eax
call dword [0x1001118]
mov esi, eax
test esi, esi
je 0x1002c72
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x1001114]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1002c6e
cmp esi, eax
jae 0x1002c72
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1002c60
cmp esi, eax
jb 0x1002c76
xor eax, eax
jmp 0x1002c80
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1003d1e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x1003d39
push 0x80004005
call fcn.01002b61
xor edi, edi
push esi
call dword [fcn.01001188]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1003d3b
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1004327
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10191b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01003c9f
mov edi, eax
cmp edi, esi
je 0x1004389
lea ecx, [ebp - 0x208]
call fcn.01002d7a
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011905
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x10043a7
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.01004327
cmp eax, esi
jne 0x10043ef
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x1004391
lea ecx, [ebp - 0x208]
call fcn.01002d7a
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01002d7a
mov eax, esi
jmp 0x1004378
Function at 0x1005dd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x418
mov eax, 0x101589d
call fcn.01011994
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [0x10010f4]
cmp eax, esi
mov dword [ebp - 0x418], eax
jne 0x1005e2a
call fcn.01003ba6
mov esi, eax
jmp 0x1005f07
push ebx
push edi
push eax
call dword [fcn.0100117c]
mov edi, eax
cmp edi, esi
jne 0x1005e43
call fcn.01003ba6
jmp 0x1005ef9
push edi
push dword [ebp - 0x418]
call dword [0x100111c]
mov ebx, eax
cmp ebx, esi
je 0x1005e39
push edi
push dword [ebp - 0x418]
call dword [0x1001114]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x1005e9f
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1005e85
lea ecx, [ebp - 0x414]
call fcn.0101260c
mov esi, 0x8007000e
lea ecx, [ebp - 0x41c]
call fcn.01004216
mov eax, esi
call fcn.01011a26
ret 0x10
push eax
lea ecx, [ebp - 0x414]
call fcn.01004a88
cmp dword [ebp - 0x414], esi
mov dword [ebp - 4], 1
jne 0x1005ec1
mov esi, 0x8007000e
jmp 0x1005efb
push edi
push dword [ebp - 0x414]
push edi
push ebx
push esi
push 3
call dword [0x10010f8]
cmp eax, esi
je 0x1005e39
mov ecx, dword [ebp - 0x414]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x414]
lea ecx, [ebp - 0x424]
call fcn.01005aa3
mov esi, eax
push dword [ebp - 0x418]
call dword [0x1001100]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1005e8a
lea ecx, [ebp - 0x414]
call fcn.0101260c
jmp 0x1005e8a
Function at 0x10090d7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
je 0x10090f3
mov eax, 0x8000ffff
jmp 0x10091d6
lea ecx, [esi + 0x24]
mov dword [ebp - 4], ecx
call fcn.01003b8d
cmp eax, edi
jl 0x10091d6
push ebx
mov ebx, dword [0x10010a8]
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x100912c
mov ecx, dword [ebp - 4]
call fcn.01002c0e
call fcn.01003ba6
jmp 0x10091d5
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [ebp - 8], eax
je 0x100919a
push edi
push edi
push eax
mov ecx, esi
call fcn.01008d0f
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1009161
push dword [ebp - 8]
call dword [fcn.01001184]
push 0x2710
mov ecx, esi
call fcn.010049da
jmp 0x10091d2
push edi
push edi
push edi
push edi
call ebx
mov ebx, eax
cmp ebx, edi
je 0x100919a
push edi
push edi
push ebx
mov ecx, esi
call fcn.01008d0f
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1009181
push ebx
jmp 0x100914d
lea eax, [esi + 4]
push eax
push edi
push esi
push 0x1008db1
push edi
push edi
call dword [0x10010e0]
cmp eax, edi
mov dword [esi], eax
jne 0x10091bb
call fcn.01003ba6
push 0x2710
mov ecx, esi
mov ebx, eax
call fcn.010049da
cmp eax, edi
jge 0x10091b7
cmp ebx, edi
jl 0x10091b7
mov ebx, eax
mov eax, ebx
jmp 0x10091d5
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [0x10011a8]
test eax, eax
je 0x10091d2
call fcn.01003ba6
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x100dad1
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10191b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.01011a8c
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [0x10010b8]
test eax, eax
je 0x100db36
cmp dword [ebp - 0x114], 5
jae 0x100db32
cmp dword [ebp - 0x114], 4
jne 0x100db36
cmp dword [ebp - 0x110], 0x5a
jb 0x100db36
xor eax, eax
jmp 0x100db39
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01011905
leave
ret
Function at 0x100ee8f
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x1015d6b
call fcn.01011921
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x1019010]
mov esi, 0x1019010
cmp eax, esi
je 0x100eec4
test byte [eax + 0x1c], 1
je 0x100eec4
push 0x1001ae4
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010028d7
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x1001a08
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.01006666
push edi
push edi
push 0x20106
push edi
push edi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push 0x80000001
call fcn.01002d98
mov dword [ebp - 0x14], eax
mov eax, dword [0x1019010]
cmp eax, esi
je 0x100ef1f
test byte [eax + 0x1c], 2
je 0x100ef1f
cmp byte [eax + 0x19], 4
jb 0x100ef1f
push dword [ebp - 0x14]
push 0x1001ae4
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
cmp dword [ebp - 0x14], edi
jne 0x100ef6b
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push 0x1001954
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x1019010]
cmp ecx, esi
je 0x100ef6b
test byte [ecx + 0x1c], 2
je 0x100ef6b
cmp byte [ecx + 0x19], 4
jb 0x100ef6b
push eax
push 0x1001ae4
push 0x65
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002935
mov eax, dword [ebp - 0x1c]
push edi
push edi
push 0x10
push dword [eax + 4]
call dword [0x1001280]
mov eax, dword [0x1019010]
cmp eax, esi
je 0x100efa2
test byte [eax + 0x1c], 1
je 0x100efa2
cmp byte [eax + 0x19], 5
jb 0x100efa2
push 0x1001ae4
push 0x66
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010028d7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01002efe
lea ecx, [ebp - 0x10]
call fcn.01002d7a
xor eax, eax
call fcn.01011a0d
ret 0x10

Function at 0x1010e3d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10191b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01010d7e
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.01011a8c
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [0x1001174]
cmp dword [ebp - 0x88], 2
jne 0x1010eb0
cmp dword [ebp - 0x94], 5
jb 0x1010ed1
jmp 0x1010ecd
cmp dword [ebp - 0x88], 1
jne 0x1010ed1
cmp dword [ebp - 0x94], 4
ja 0x1010ecd
jne 0x1010ed1
cmp dword [ebp - 0x90], 0
jbe 0x1010ed1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100243c
call fcn.01002bbe
test eax, eax
jge 0x1010ef2
mov byte [0x1019514], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01011905
leave
ret
Function at 0x10113fc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1019718], 0
push esi
jne 0x101136a
call fcn.01011261
test eax, eax
je 0x10113ad
mov eax, dword [0x1019718]
cmp eax, 1
jne 0x101138b
push 0xd
push 0
call dword [0x100115c]
push eax
call dword [0x100116c]
test eax, eax
je 0x10113ad
pop esi
ret
push eax
call dword [0x1019720]
test eax, eax
jne 0x10113f5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [0x100114c]
mov esi, eax
test esi, esi
jne 0x10113b1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1019718]
call dword [0x1019720]
mov edi, eax
test edi, edi
je 0x10113d6
push 0x8000
push 0
push esi
call dword [0x1001150]
jmp 0x10113f2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1019718]
call dword [0x101971c]
add edi, 0x10
cmp edi, esi
jb 0x10113de
mov eax, edi
pop edi
pop esi
ret
jmp 0x1011357

Function at 0x1012000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1012013
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101200f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1012040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101207f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1012075
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1012081
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1012065
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1013c16
Capabilities:
Get user security identifier

Disassembly:
push 0xe0
mov eax, 0x10160ef
call fcn.01011994
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.01012714
test ebx, ebx
je 0x1013d9f
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.01012a3c
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x1013d1c
call dword [fcn.01001198]
cmp eax, 0x7a
jne 0x1013d7f
cmp dword [ebp - 0xdc], 0x44
jbe 0x1013cca
push 0x80004005
call fcn.01002b61
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x1013cee
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.01012a60
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x1013d7f
lea eax, [ebp - 0x54]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1013d7f
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.0100664a
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.0100664a
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.0100664a
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1013d7b
lea ecx, [ebp - 0xd8]
call fcn.0101260c
mov al, 1
jmp 0x1013da1
mov ecx, edi
call fcn.01012714
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1013d9f
lea ecx, [ebp - 0xd8]
call fcn.0101260c
xor al, al
call fcn.01011a26
ret 8
Function at 0x1013e38
Capabilities:
Get session user name

Disassembly:
push 0x6c
mov eax, 0x1016144
call fcn.01011994
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [0x1019010]
mov esi, 0x1019010
cmp eax, esi
je 0x1013e79
test byte [eax + 0x1c], 1
je 0x1013e79
cmp byte [eax + 0x19], 5
jb 0x1013e79
push 0x10025e4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010028d7
mov eax, 0x7fff
push eax
mov ecx, edi
mov dword [ebp - 0x78], eax
call fcn.01004b92
lea ecx, [ebp - 0x78]
push ecx
push eax
push 2
call fcn.0101555e
movzx ebx, al
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013ec0
test byte [eax + 0x1c], 2
je 0x1013ec0
cmp byte [eax + 0x19], 4
jb 0x1013ec0
push ebx
push 0x10025e4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
push 0xffffffffffffffff
mov ecx, edi
call fcn.01012944
lea ecx, [ebp - 0x70]
call fcn.01012afb
and dword [ebp - 4], 0
cmp ebx, 1
jne 0x1013f85
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013f07
test byte [eax + 0x1c], 2
je 0x1013f07
cmp byte [eax + 0x19], 4
jb 0x1013f07
push dword [edi]
push 0x10025e4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006f58
mov edi, dword [edi]
push 0
push edi
lea ecx, [ebp - 0x70]
call fcn.01013c16
movzx ebx, al
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013f44
test byte [eax + 0x1c], 2
je 0x1013f44
cmp byte [eax + 0x19], 4
jb 0x1013f44
push ebx
push 0x10025e4
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
mov eax, dword [0x1019010]
cmp ebx, 1
jne 0x1013f8a
lea ecx, [ebp - 0x70]
call fcn.01013dae
mov edi, dword [ebp - 0x74]
push eax
mov ecx, edi
call fcn.0100664a
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013fad
test byte [eax + 0x1c], 2
je 0x1013f8a
cmp byte [eax + 0x19], 4
jb 0x1013f8a
push dword [edi]
push 0x10025e4
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006f58
mov eax, dword [0x1019010]
cmp eax, esi
je 0x1013fad
test byte [eax + 0x1c], 1
je 0x1013fad
cmp byte [eax + 0x19], 5
jb 0x1013fad
push ebx
push 0x10025e4
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01002935
lea ecx, [ebp - 0x70]
call fcn.01012b3a
mov eax, ebx
call fcn.01011a26
ret 8
Function at 0x41fc90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x2b3f320]
xor edx, edx
cmp eax, edx
jne 0x41fcb6
xor eax, eax
mov byte [eax + 0x2b3f220], al
inc eax
cmp eax, 0x100
jl 0x41fc9e
mov dword [0x2b3f320], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x2b3f220
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41fd47
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41fd1a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41fce8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41fdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41fe13
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41fdfa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret