joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11960
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.KeStackAttachProcess
call fcn.00011280
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0xe8
push 1
lea eax, [ebp - 1]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.000110a0
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
push str.__nKeStackAttachProcessAddr_x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 8]
push eax
push str.__________nCallAddr_x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov ecx, dword [ebp - 8]
mov dword [0x14008], ecx
push 0x116f0
mov edx, dword [0x14008]
push edx
call fcn.00011000
mov esp, ebp
pop ebp
ret

Function at 0x11a00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x39
call fcn.00011140
mov dword [0x14018], eax
mov byte [ebp - 8], 0x50
mov byte [ebp - 7], 0xff
mov byte [ebp - 6], 0x75
mov byte [ebp - 5], 8
mov byte [ebp - 4], 0x56
mov byte [ebp - 3], 0xe8
push 6
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x14018]
push ecx
call fcn.000110a0
mov dword [0x1400c], eax
push 6
lea edx, [ebp - 8]
push edx
mov eax, dword [0x1400c]
push eax
call fcn.000110a0
mov dword [0x1400c], eax
mov ecx, dword [0x1400c]
push ecx
call fcn.00011030
mov dword [0x14058], eax
mov edx, dword [0x14058]
add edx, 8
mov dword [0x14044], edx
push 0x119f0
mov eax, dword [0x1400c]
push eax
call fcn.00011000
mov ecx, dword [0x14058]
push ecx
push str.DbgkpSetProcessDebugObjectAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [0x1400c]
push edx
push str.HookNtDebugActiveProcessAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x11b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov byte [ebp - 0x18], 0xff
mov byte [ebp - 0x17], 0x75
mov byte [ebp - 0x16], 8
mov byte [ebp - 0x15], 0x56
mov byte [ebp - 0x14], 0xe8
xor eax, eax
mov byte [ebp - 0x13], al
push 5
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x14018]
push edx
call fcn.000110a0
mov dword [0x1406c], eax
mov eax, dword [0x1406c]
push eax
call fcn.00011030
mov dword [0x1406c], eax
mov ecx, dword [0x1406c]
push ecx
push str._DbgkpPostFakeProcessCreateMessagesAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0xc
mov byte [ebp - 0xd], 0xff
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 8
mov byte [ebp - 0xa], 0xe8
push 7
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x1406c]
push eax
call fcn.000110a0
mov dword [0x1404c], eax
mov ecx, dword [0x1404c]
push ecx
call fcn.00011030
mov dword [0x1404c], eax
mov edx, dword [0x1404c]
push edx
push str.___DbgkpPostFakeThreadMessagesAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov byte [ebp - 8], 0x50
mov byte [ebp - 7], 0x56
mov byte [ebp - 6], 0xff
mov byte [ebp - 5], 0x75
mov byte [ebp - 4], 8
mov byte [ebp - 3], 0xe8
push 6
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x1404c]
push ecx
call fcn.000110a0
mov dword [0x14070], eax
mov edx, dword [0x14070]
push edx
push str.HookDbgkpPostFakeThreadMessagesAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [0x14070]
push eax
call fcn.00011030
mov dword [0x14068], eax
mov ecx, dword [0x14068]
add ecx, 0xb
mov dword [0x14004], ecx
push 0x11ae0
mov edx, dword [0x14070]
push edx
call fcn.00011000
mov esp, ebp
pop ebp
ret

Function at 0x11c50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0x75
mov byte [ebp - 0xe], 0xf8
mov byte [ebp - 0xd], 0xff
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 8
mov byte [ebp - 0xa], 0xe8
push 7
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x1406c]
push ecx
call fcn.000110a0
mov dword [0x14088], eax
mov edx, dword [0x14088]
push edx
call fcn.00011030
mov dword [0x14088], eax
mov byte [ebp - 8], 0xff
mov byte [ebp - 7], 0x75
mov byte [ebp - 6], 0xc
mov byte [ebp - 5], 0xff
mov byte [ebp - 4], 0x75
mov byte [ebp - 3], 8
mov byte [ebp - 2], 0xe8
push 7
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x14088]
push ecx
call fcn.000110a0
mov dword [0x14080], eax
push 0x11ae0
mov edx, dword [0x14080]
push edx
call fcn.00011000
mov eax, dword [0x14080]
push eax
push str.HookDbgkpPostFakeModuleMessagesAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x11d20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 8], 0x53
mov byte [ebp - 7], 0x53
mov byte [ebp - 6], 0x52
mov byte [ebp - 5], 0x50
mov byte [ebp - 4], 0x51
mov byte [ebp - 3], 0xe8
push 6
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x14058]
push ecx
call fcn.000110a0
mov dword [0x1401c], eax
push 0x11ae0
mov edx, dword [0x1401c]
push edx
call fcn.00011000
mov eax, dword [0x1401c]
push eax
push str.HookDbgkpSendApiMessageAddr_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esp, ebp
pop ebp
ret

Function at 0x11e40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.00011da0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x11e65
mov eax, dword [ebp - 0x14]
push eax
push 0x13478
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], 0x40
mov byte [ebp - 0xa], 4
mov byte [ebp - 9], 0x8d
mov byte [ebp - 8], 0x77
mov byte [ebp - 7], 0xb8
mov byte [ebp - 6], 3
mov byte [ebp - 5], 6
mov byte [ebp - 4], 0x33
mov byte [ebp - 3], 0xc9
push 0xa
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x4800
push edx
call fcn.000110a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x11ee3
mov eax, dword [ebp - 0x10]
sub eax, 0xe
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x13484
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov byte [eax + 4], 0x70
mov edx, dword [ebp - 0x10]
push edx
push 0x1349c
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x11ef0
push 0x134a8
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x120f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x14010], eax
call fcn.00011350
call fcn.00011630
call fcn.000114b0
call fcn.00011570
call fcn.00011ff0
call fcn.000117b0
call fcn.00011960
call fcn.00011a00
call fcn.00011b00
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0x122b0
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], 0x122b0
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0x122b0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x44], 0x122b0
mov edx, dword [ebp + 8]
mov dword [edx + 0x70], 0x122b0
mov eax, dword [ebp + 8]
push eax
call fcn.00012190
mov dword [ebp - 4], eax
push 0x13538
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], 0x12050
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x12190
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x13548
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push 0x22
lea edx, [ebp - 0x14]
push edx
push 0x14
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1221f
cmp dword [ebp - 0x18], 0xc000009a
jne 0x121de
push 0x13564
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [ebp - 0x18], 0x40000000
jne 0x121f4
push 0x13570
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [ebp - 0x18], 0xc0000035
jne 0x1220a
push 0x13580
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x13590
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x122a1
push 0x135a0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push str.__BaoHuSys
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
or eax, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 8]
mov dword [eax + 0x10], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x1229f
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp - 0x18]
jmp 0x122a1
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x456008], 0x8088405
inc edx
mov dword [ebx + 0x456008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x43989e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4398a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x43ac17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x4585f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x4585f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x4573fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ac1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40e460
Capabilities:
Encode data using xor

Disassembly:
invalid
or bh, dh
stosb byte es:[edi], al
invalid
les ecx, [esi + 0x6d]
dec edx
aas
jno 0x40e40e
in eax, dx
mov byte [eax], bh
lds esi, [ebp + 0x2809a1bc]
enter 0x62cd, 0x5d
leave
cmp eax, ecx
jge 0xe4593d19
in al, 0x16
cmp esi, dword [esi - 0x4a]
pushfd
add al, al
pop edi
loope 0x40e45f
dec edi
adc byte [edi + 0x3a0019b7], dl
cmp ebx, dword [esi + ecx*4 - 0x30f71552]
push edi
xchg esp, eax
sal dword [ecx], 0xf1
mov bh, 9
push edx
aam 0xc3
xlatb
insd dword es:[edi], dx
mov byte [ebx - 0x14], 0x63
movsd dword es:[edi], dword [esi]
pop es
jmp 0x40e47c

Function at 0x40e5ab
Capabilities:
Encode data using xor

Disassembly:
cmp al, 0xe4
std
mov esp, 0xc6770058
bnd je 0x40e5cc
invalid
jecxz 0x40e606
add ch, byte [edi - 0x30]
stosd dword es:[edi], eax
cmpsb byte [esi], byte es:[edi]
add byte [ecx], bh
scasb al, byte es:[edi]
aad 0xc0
xchg esi, eax
imul dword [0xf654063f]
inc ebp
invalid
sub cl, dh
inc esp
out dx, al
lahf
dec esp
sub eax, 0xf69ecc6c
ror byte [edi + 0x73fce403], 0xac
cld
jae 0x40e58a
daa
pop edi
xor eax, 0x7526693f
jnp 0x40e646
imul ecx, dword [esi - 3], 0xb3c6b9f8
mov al, byte [0x2f2e49dc]
push es
test eax, 0xc076757c
push ds
popal
xchg edi, edx
pop esp
mov edi, dword [ecx - 0x21]
std
pushfd
call 0x1dd4049
cmp ebp, dword [bp + di]
popfd
and byte [eax], cl
pop esp
push ss
pushfd
add dword [edi + 0x3b], esp
sub ebx, dword [ebp + 0x165c0820]
xchg ecx, eax
xor edi, esp
dec dword [esi]
stc
cmpsw word [esi], word es:[edi]
xchg dword [ecx + 0x7623dc4b], edi
cld
sbb edx, esp
lahf
jbe 0x40e5db
dec edx
int3
loopne 0x40e5de
mov cs, word [esi + 0x4fb076fd]
mov ebx, 0xf6194cc0
mov cl, 0x85
jg 0x40e644
bound esi, qword [esi + 1]
push ss
stosb byte es:[edi], al
pop es
lodsd eax, dword [esi]
sbb byte [edi + eax], 0x4e
not byte [ecx + 0x72]
das
inc ebp
scasb al, byte es:[edi]
sub dl, byte [eax]
sti
push 0xffffffffffffffed
mov word [ebp + 0x10], cs
cmp al, 0x1e
mov ss, eax
pop ds
adc ebx, 2
xchg dword [edx + edi*2 - 0x6c], edx
hlt
Function at 0x1001789
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x1001833
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x1001833
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [esi + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1001833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x7a
jne 0x1001833
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
mov dword [ebp - 4], ebx
call edi
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x10017fa
push 8
pop eax
jmp 0x100183e
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x10017f5
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1001833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001fe7
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0x40
jb 0x1001ffe
push 0x6f
pop eax
jmp 0x10020e8
push ebx
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x100201c
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.010015b5
jmp 0x100201e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esi + ecx*8 + 8], eax
cmp eax, ebx
jne 0x1002031
push 8
pop eax
jmp 0x10020e7
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
jne 0x100204b
cmp eax, 1
jne 0x100204b
mov eax, dword [esi + 4]
mov dword [esi + eax*8 + 0xc], 4
jmp 0x1002052
mov ecx, dword [esi + 4]
mov dword [esi + ecx*8 + 0xc], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*8 + 8]
push edi
push dword [ebp + 0x14]
call fcn.010015e3
mov dword [ebp + 0x14], eax
cmp eax, ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*8 + 8]
jne 0x10020d8
lea eax, [ebp - 4]
push eax
call fcn.01001789
mov dword [ebp + 0x14], eax
cmp eax, ebx
jne 0x10020d1
cmp dword [esi + 4], ebx
jbe 0x10020b3
lea edi, [esi + 8]
mov ecx, dword [edi]
lea eax, [ebp + 0x10]
push eax
call fcn.01001789
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x10020aa
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10020b8
inc ebx
add edi, 8
cmp ebx, dword [esi + 4]
jb 0x1002088
inc dword [esi + 4]
jmp 0x10020e3
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*8 + 8]
test ecx, ecx
je 0x10020ca
push 1
call fcn.01001fc1
mov eax, 0xa0
jmp 0x10020e6
mov eax, dword [esi + 4]
mov ecx, dword [esi + eax*8 + 8]
cmp ecx, ebx
je 0x10020e3
push 1
call fcn.01001fc1
mov eax, dword [ebp + 0x14]
pop edi
pop ebx
pop esi
leave
ret 0x10

Function at 0x10021d5
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push edi
or edi, 0xffffffff
test eax, eax
je 0x1002247
jmp 0x100221a
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1002225
mov ecx, dword [esi + 0xc]
add ecx, 8
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1002225
mov eax, dword [esi + 0xc]
inc dword [esi + 0x14]
movzx ecx, word [eax + 2]
push ecx
push eax
call fcn.01002f1b
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
movzx eax, word [eax + 4]
cmp dword [esi + 0x14], eax
jb 0x10021ea
jmp 0x1002247
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edi, dword [esi + 0x14]
lea eax, [edi + 1]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
movzx ecx, word [eax + 2]
push ecx
push eax
call fcn.01002f1b
mov dword [esi + 0xc], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4