joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e0b0
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x56a56f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e161
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e14a
test esi, esi
jbe 0x41e161
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ac
test eax, eax
jne 0x41e13c
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 0x41e161
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e119
jmp 0x41e161
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e161
mov eax, ecx
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 0x56a576
ret
Function at 0x41e9a4
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 dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x56af53
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 0x41e9df
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e9f8
lea eax, [ebp - 0x10]
mov edx, dword [0x583248]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41ea0b
lea eax, [ebp - 0x10]
mov edx, dword [0x583248]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ea17
adc edx, 0
mov edx, dword [edx*4 + 0x5820d8]
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.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41eb25
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41eb18
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d9c
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41eb18
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41eb18
cmp dx, 0x150
ja 0x41eb18
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41eb18
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41eb18
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
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.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41eb3d
inc ebx
cmp ebx, 0x19
jne 0x41e9d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56af5a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401000
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
neg eax
and esi, 0xf8
add ebx, 0x15
inc eax
rcr ebx, 0x1b
sub esi, 0x1b
and edi, 0x90
not edx
neg edi
neg esi
neg edx
sbb esi, 0x44
mov edi, 0x61
rcl edi, 0xb0
or eax, 0x48
dec esi
ror ebx, 0x86
or eax, 0x54
sub edx, 0x5a
ror edi, 0xe5
dec esi
rcl eax, 0xc4
rcr esi, 0x51
neg esi
add edi, 0xb3
sub edx, 0x1d
imul edx
dec ebx
not eax
and ebx, 0xf9
imul eax
or edi, 0xe4
sbb edi, 3
not esi
dec edi
rcl ebx, 0x6d
dec ebx
inc esi
mov ebx, 0xe1
neg eax
neg eax
imul esi
add ebx, 0xf
rcr ebx, 0xdc
bswap esi
neg eax
neg esi
rcr eax, 0x28
add esi, 0x6f
not eax
xor ecx, ecx
xor edi, edi
bswap esi
dec edx
dec esi
add ebx, 0x7b
not esi
dec ebx
mov edx, 0xe8
rcl esi, 0xc4
bswap edx
inc edi
not edx
bswap ebx
bswap esi
and eax, 0x36
bswap edi
neg eax
bswap edx
sub edi, 0xaa
mov edx, 0xf4
inc eax
not eax
ror ebx, 0x2b
imul edi
imul esi
rcl esi, 0xeb
not esi
mov ebx, 0x4c
inc ebx
mov edi, 0x8c
or ebx, 0x17
not edi
dec eax
bswap ebx
and edx, 0xbb
not esi
not esi
rol eax, 0x5c
add esi, 0x9b
sub eax, 0x20
bswap esi
imul ebx
dec esi
neg eax
imul eax
inc edx
and edx, 0x3a
inc edi
mov edi, 3
bswap ebx
imul edi
mov ecx, dword [ebp + 0xc]
imul esi
imul ebx
imul ebx
inc esi
not esi
not edx
rol ebx, 0xcc
sub ebx, 0x27
not eax
inc ebx
imul edx
dec edi
not eax
bswap ebx
imul esi
neg eax
rcr ebx, 0x1f
neg edx
dec edx
not edi
bswap edx
rol ebx, 0xa9
or esi, 0x1a
bswap edi
bswap esi
not edi
neg edi
mov ebx, 0xb2
sub ebx, 0xb9
rcl ebx, 0xd0
sbb edx, 0xf0
or ebx, 0xdd
neg esi
rcr eax, 0x80
sub edi, 0x15
inc eax
and eax, 0x68
inc esi
dec edx
rcr eax, 2
rcr esi, 0xbb
rcl edx, 0xd
rol edi, 0xf5
neg ebx
sbb edi, 0x5d
bswap esi
rcr edi, 0x9b
rcl ebx, 3
rcl esi, 0x80
or edx, 0x4f
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, esi
mov eax, esi
xor eax, esi
mov ebx, esi
xor eax, ebx
xor ebx, esi
xor esi, esi
xor ebx, esi
xor ebx, esi
xor esi, eax
mov eax, esi
not byte [edi]
mov eax, esi
xor eax, esi
xor esi, eax
mov esi, ebx
xor esi, esi
mov eax, esi
xor esi, ebx
xor eax, ebx
mov eax, eax
sub byte [edi], 0x67
xor ebx, esi
mov esi, eax
mov esi, eax
xor eax, esi
mov ebx, esi
xor eax, eax
xor eax, eax
mov eax, esi
xor ebx, esi
add byte [edi], 0x84
xor eax, esi
mov ebx, ebx
mov esi, ebx
xor esi, eax
mov esi, ebx
mov eax, esi
xor esi, ebx
mov eax, esi
xor eax, eax
imul byte [edi]
inc edi
loop 0x40119c
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403323
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402219
and dword [ebp - 4], 0
cmp dword [0x4a16b0], 0
mov ebx, eax
jne 0x4033d4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403485
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a8d0
push edi
call esi
test eax, eax
je 0x403485
push eax
call fcn.004021a7
mov dword [esp], 0x40a8c0
push edi
mov dword [0x4a16b0], eax
call esi
push eax
call fcn.004021a7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a16b4], eax
call esi
push eax
call fcn.004021a7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a16b8], eax
call esi
push eax
call fcn.004021a7
pop ecx
mov dword [0x4a16c0], eax
test eax, eax
je 0x4033d4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004021a7
pop ecx
mov dword [0x4a16bc], eax
mov eax, dword [0x4a16bc]
cmp eax, ebx
je 0x40342c
cmp dword [0x4a16c0], ebx
je 0x40342c
push eax
call fcn.00402222
push dword [0x4a16c0]
mov esi, eax
call fcn.00402222
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40342c
test edi, edi
je 0x40342c
call esi
test eax, eax
je 0x403423
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403423
test byte [ebp - 0xc], 1
jne 0x40342c
or dword [ebp + 0x10], 0x200000
jmp 0x403465
mov eax, dword [0x4a16b4]
cmp eax, ebx
je 0x403465
push eax
call fcn.00402222
pop ecx
test eax, eax
je 0x403465
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403465
mov eax, dword [0x4a16b8]
cmp eax, ebx
je 0x403465
push eax
call fcn.00402222
pop ecx
test eax, eax
je 0x403465
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a16b0]
call fcn.00402222
pop ecx
test eax, eax
je 0x403485
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403487
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40518e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a0df8]
jne 0x405198
repz ret
jmp fcn.004068b5
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x4d913e23
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x60f44f41
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x414b70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..pdata
lea edi, [esi - 0x10000]
push edi
jmp 0x414b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b80
mov eax, 1
add ebx, ebx
jne 0x414ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b98
jne 0x414bb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b98
xor ecx, ecx
sub eax, 3
jb 0x414bc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c3a
mov ebp, eax
add ebx, ebx
jne 0x414bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414be0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414c04
inc ecx
add ebx, ebx
jne 0x414bf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414be5
jne 0x414c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414be5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414c24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414c15
jmp 0x414b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414c24
add edi, ecx
jmp 0x414b86
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c42
cmp byte [edi], 5
jne 0x414c42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x414c47
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414cbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19be8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19c24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414c74
mov ecx, edi
jns 0x414ca3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19c2c]
or eax, eax
je 0x414cb9
mov dword [ebx], eax
add ebx, 4
jmp 0x414c91
call dword [esi + 0x19c28]
mov ebp, dword [esi + 0x19c30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x414cf3
sub esp, 0xffffff80
jmp 0x401150

Function at 0x467228
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x467228
lcall 0x5de5, 0x8b10c483
jmp fcn.01f7a258
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414de4
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx], ebx
dec edx
add ecx, 4
cmp ecx, eax
jne fcn.00414de4
sub esi, 1
mov edx, edi
dec esi
ret
Function at 0x10001b48
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov byte [ebp - 1], 0
mov eax, dword fs:[0x30]
mov bl, byte [eax + 2]
mov byte [ebp - 1], bl
movzx eax, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x10003d9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xb4
mov eax, 0x10021cad
call fcn.10008da5
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
push eax
movzx eax, cx
push eax
push dword [0x10032ed0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [0x10032ed0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x10032ed0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0xb0
mov esi, eax
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.1000b0b0
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.10005961
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc4], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x10003e6a
push 0
push edi
push esi
lea ecx, [ebp - 0xc0]
call fcn.10005ae7
lea ecx, [ebp - 0xc0]
call fcn.100058ee
lea ecx, [ebp - 0xc0]
call fcn.10003e8b
lea ecx, [ebp + 8]
call fcn.1000633b
lea ecx, [ebp + 0x20]
call fcn.1000633b
call fcn.10008d63
ret

Function at 0x10003eef
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10031070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 2
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x10003f5d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x1002e028
push 1
push esi
push 0x1002e0f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10003f57
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
push edx
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
cmp word [ebp - 8], si
je 0x10003f4e
mov eax, dword [ebp - 0xc]
push esi
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10008655
leave
ret
Function at 0x10004076
Capabilities:
Enumerate processes

Disassembly:
push 0x23c
mov eax, 0x10021d35
call fcn.10008da5
mov edi, ecx
mov dword [ebp - 0x240], edi
xor eax, eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x248], edi
push 2
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004103
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x100040ea
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x234], eax
je 0x100040f0
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100040ce
jmp 0x100040fc
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x240], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [edi + 0x14], 7
xor eax, eax
mov dword [edi], ecx
mov dword [edi + 0x10], ecx
mov word [edi], ax
push ecx
mov dword [ebp - 4], ecx
push 2
mov dword [ebp - 0x244], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004192
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10004169
mov eax, dword [ebp - 0x240]
cmp dword [ebp - 0x234], eax
je 0x1000416f
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000414d
jmp 0x1000418b
lea eax, [ebp - 0x218]
push eax
call fcn.1000e34d
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.1000626d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.10008d63
ret

Function at 0x1000419a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10031070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
xor esi, esi
lea eax, [ebp - 0x22c]
push esi
push eax
mov ebx, ecx
call fcn.1000b0b0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000420f
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1000cdbf
pop ecx
pop ecx
test eax, eax
je 0x10004215
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100041ee
jmp 0x1000421b
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008655
leave
ret
Function at 0x1000422c
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10031070]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x4c], 0xffffffff
lea eax, [ebp - 0x48]
or dword [ebp - 0x54], 0xffffffff
push ebx
push esi
push eax
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x100042fb
push ebx
push ebx
push ebx
push ebx
push esi
push 1
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x100042f2
lea eax, [ebp - 0x54]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp eax, 0xea
jne 0x100042f2
mov eax, dword [ebp - 0x58]
xor ecx, ecx
inc eax
mov edx, 0x29c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100086a6
mov ecx, dword [ebp - 0x58]
mov esi, eax
push 4
push ebx
push esi
mov dword [ebp - 0x50], ecx
call fcn.1000b0b0
add esp, 0x10
lea eax, [ebp - 0x54]
push eax
push esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
test eax, eax
jne 0x100042eb
push ebx
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push esi
call fcn.1000e1c5
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10008655
leave
ret
Function at 0x1000510f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10005136
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10005700
jmp 0x100051eb
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x10005158
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1000515a
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x100051df
jg 0x1000516f
test esi, esi
je 0x100051df
test ecx, ecx
jl 0x100051c2
jg 0x10005179
test eax, eax
je 0x100051c2
cmp edi, ecx
jg 0x1000518d
jl 0x10005183
cmp esi, eax
jae 0x1000518d
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.10009b50
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x100051df
jg 0x100051c5
test esi, esi
je 0x100051df
jmp 0x100051c5
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x100051df
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.1000dea9
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc