joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029364
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.100290a8
pop ecx
test al, al
jne 0x1002948c
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.100290a8
pop ecx
test al, al
jne 0x1002948c
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x10039658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x10039658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.100290a8
pop ecx
test al, al
jne 0x1002948c
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.100290a8
pop ecx
test al, al
jne 0x1002948c
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.100290a8
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10029d04
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x10029d2f
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x10029d43
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x10029d47
xor eax, eax
jmp 0x10029d49
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x10029f04
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x10029f9b
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.10029cd8
test al, al
je 0x10029f9b
cmp word [ebp - 2], 0x5a4d
jne 0x10029f9b
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.10029cd8
test al, al
je 0x10029f9b
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.10029cd8
test al, al
je 0x10029f9b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x10029f9b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x10029f9f
xor eax, eax
jmp 0x10029fa1
mov al, 1
test al, al
je 0x10029fbe
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x1002a2ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
xor eax, eax
call fcn.10018fa0
mov dword [ebp - 0x23e], eax
mov esi, dword [ebp - 0x23e]
test esi, esi
je 0x1002a49c
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x23a]
push eax
push esi
push ebx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1002a49c
push ebx
push 0x2c9
call fcn.10019f18
mov esi, eax
cmp dword [ebp - 0x23a], 0
jne 0x1002a358
xor eax, eax
mov dword [ebp - 0x236], eax
jmp 0x1002a369
call fcn.10018f28
add eax, dword [ebp - 0x23a]
mov dword [ebp - 0x236], eax
mov dl, 1
mov eax, dword [0x10037c6c]
call fcn.10018fa0
mov dword [ebp - 0x232], eax
mov dl, 1
mov eax, dword [0x10037c38]
call fcn.10018fa0
mov dword [ebp - 0x22e], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.KERNEL32.dll_lstrlenW
mov edi, eax
add edi, edi
mov word [ebp - 0x22a], di
add di, 2
mov word [ebp - 0x228], di
lea eax, [ebp - 0x222]
lea edx, [ebp - 0x23e]
sub eax, edx
mov edi, esi
add edi, 0x9b
add eax, edi
mov dword [ebp - 0x226], eax
movzx ecx, word [ebp - 0x228]
lea edx, [ebp - 0x222]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
call fcn.100115ec
mov byte [ebp - 0x1a], 0xb8
mov dword [ebp - 0x19], edi
mov byte [ebp - 0x15], 0xe9
mov dword [ebp - 0x14], 0xfffffd37
call fcn.10018f28
add edi, 0x22e
sub edi, 0xa
sub edi, eax
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
push eax
push 0x9b
push 0x100382b4
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1002a49c
lea eax, [ebp - 8]
push eax
push 0x22e
lea eax, [ebp - 0x23e]
push eax
add esi, 0x9b
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1002a49c
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [ebp - 0x23e]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x1002a49c
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x23e]
push eax
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1002a49c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 0x23e]
push eax
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a4d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, eax
xor edi, edi
push esi
push 0x2ac
call fcn.10019f18
mov ebx, eax
test ebx, ebx
je 0x1002a6c9
cmp dword [0x10037ffc], 0
jne 0x1002a51a
mov dl, 1
mov eax, dword [0x10037c38]
call fcn.10018fa0
mov dword [0x10037ffc], eax
cmp dword [0x10038000], 0
jne 0x1002a534
mov dl, 1
mov eax, dword [0x10037c6c]
call fcn.10018fa0
mov dword [0x10038000], eax
mov byte [ebp - 0x242], 0xb8
mov dword [ebp - 0x241], ebx
mov byte [ebp - 0x23d], 0xb9
lea eax, [ebx + 0x22d]
mov dword [ebp - 0x23c], eax
mov word [ebp - 0x238], 0xd1ff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.1002a4a8
mov dword [ebp - 0x236], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
call sub.KERNEL32.dll_lstrlenW
add eax, eax
mov word [ebp - 0x22d], ax
mov ax, word [ebp - 0x22d]
add ax, 2
mov word [ebp - 0x22b], ax
lea eax, [ebx + 0x1d]
mov dword [ebp - 0x229], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
mov eax, dword [eax - 0x14]
push eax
lea eax, [ebp - 0x225]
push eax
call sub.KERNEL32.dll_lstrcpyW
mov eax, dword [0x10038000]
mov dword [ebp - 0x1d], eax
mov eax, dword [0x10037ffc]
mov dword [ebp - 0x19], eax
cmp dword [ebp - 0x236], 0
je 0x1002a6c9
lea eax, [ebp - 0x10]
push eax
push 0x22e
lea eax, [ebp - 0x242]
push eax
push ebx
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1002a6c9
cmp dword [ebp - 0x10], 0x22e
jne 0x1002a6c9
lea eax, [ebp - 0x10]
push eax
push 0x7e
push 0x100383f0
lea eax, [ebx + 0x22d]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1002a6c9
cmp dword [ebp - 0x10], 0x7e
jne 0x1002a6c9
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x1002a6c9
cmp dword [ebp - 0x10], 5
jne 0x1002a6c9
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
lea eax, [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x1002a6c9
cmp dword [ebp - 0x10], 5
jne 0x1002a6c9
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x1002a6c9
mov byte [ebp - 9], 0xe9
sub ebx, dword [ebp - 0x236]
sub ebx, 5
mov dword [ebp - 8], ebx
lea eax, [ebp - 0x10]
push eax
push 5
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 5
mov eax, dword [ebp - 0x236]
push eax
push esi
call sub.KERNEL32.dll_VirtualProtectEx
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1002a6d4
Capabilities:
Get number of processors

Disassembly:
mov eax, dword gs:[0x60]
mov edx, dword gs:[0x64]
ret
Function at 0x1002aaf8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x1002ab27
mov eax, dword [ebp + 8]
push eax
mov edx, esi
mov eax, ebx
call fcn.10029d54
pop ecx
test al, al
je 0x1002ac36
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x100]
lea edx, [ebp - 4]
mov eax, ebx
call fcn.10029fc4
pop ecx
test al, al
je 0x1002ac32
lea eax, [ebp - 0x194]
mov edx, 0x94
call fcn.10013e9c
mov dword [ebp - 0x194], 0x94
lea eax, [ebp - 0x194]
push eax
call sub.KERNEL32.dll_GetVersionExA
cmp dword [ebp - 0x184], 2
jne 0x1002ac15
push ebx
call fcn.10026868
test eax, eax
je 0x1002aba2
push ebp
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.1002a820
pop ecx
mov edi, eax
jmp 0x1002abee
cmp dword [ebp - 0x190], 5
ja 0x1002abbd
cmp dword [ebp - 0x190], 5
jne 0x1002abd3
cmp dword [ebp - 0x18c], 0
jbe 0x1002abd3
call fcn.100268cc
test eax, eax
jne 0x1002abd3
push ebp
mov eax, ebx
call fcn.1002a2ec
pop ecx
mov edi, eax
jmp 0x1002abee
push ebp
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.1002a4d8
pop ecx
mov edi, eax
cmp edi, 1
jne 0x1002ac3b
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0x1002ac0e
mov eax, dword [ebp + 8]
push eax
mov edx, esi
mov eax, ebx
call fcn.10029d54
pop ecx
test al, al
je 0x1002ac3b
mov edi, 2
jmp 0x1002ac3b
push ebp
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.1002a064
pop ecx
mov edi, eax
jmp 0x1002ac3b
xor edi, edi
jmp 0x1002ac3b
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002bd54
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 1
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.1002adf0
mov ebx, eax
test bl, bl
je 0x1002bda6
test esi, 4
jne 0x1002bdb1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x1002bdb1
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002d920
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x1002d9fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x10038474], 0
jne 0x1002d9c9
lea edx, [ebp - 8]
mov eax, dword [0x10037e30]
call fcn.1001520c
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, dword [0x10037e38]
call fcn.1001520c
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.10014db4
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.10012858
mov eax, dword [ebp - 4]
call fcn.10012998
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
push 0
push 0
push 0
push 0xf001f
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov dword [0x10038474], eax
mov eax, dword [0x10038474]
xor edx, edx
mov dword [eax], edx
push ebx
call sub.KERNEL32.dll_CloseHandle
cmp dword [0x10038474], 0
je 0x1002d9e0
mov eax, dword [0x10038474]
call fcn.1002d910
mov ebx, eax
jmp 0x1002d9e2
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002da04
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.1001252c
ret

Function at 0x1002e1cc
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x150], eax
xor eax, eax
push ebp
push 0x1002e271
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x150]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.10012700
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
xor ecx, ecx
call fcn.1002c678
mov ebx, eax
test bl, bl
je 0x1002e258
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002e278
lea eax, [ebp - 0x150]
call fcn.10012508
ret
Function at 0x1002e49c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x1002e686
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x10038480], 0
jne 0x1002e66b
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x1002e664
xor eax, eax
push ebp
push 0x1002e65d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x1002e646
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x1002e640
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x10037d90]
call fcn.1001520c
mov eax, dword [ebp - 0x24]
call fcn.10012998
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1002e574
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x10037d94]
call fcn.1001520c
mov eax, dword [ebp - 0x28]
call fcn.10012998
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1002e5a7
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x10037d98]
call fcn.1001520c
mov eax, dword [ebp - 0x2c]
call fcn.10012998
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x1002e5da
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x1002e62c
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x1002e5f7
cmp eax, dword [ebp - 0x10]
je 0x1002e628
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x1002e60c
cmp eax, dword [ebp - 0x18]
je 0x1002e628
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x1002e621
cmp eax, dword [ebp - 0x20]
je 0x1002e628
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x1002e5e4
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002e664
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x10038480], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002e68d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.1001252c
ret
Function at 0x423b60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49650b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048a6fd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x423be2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00487fd0
mov eax, dword [eax]
push 0x4d3220
push eax
call fcn.0047a1b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048a988
test bl, bl
je 0x423be2
push 0x4d3220
lea ecx, [esp + 0xc]
call fcn.0048ad18
push 0x4d6d9c
lea ecx, [esp + 0xc]
call fcn.0048ad18
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x423c1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048a988
jmp 0x423ce9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x423ca2
lea edx, [esp + 0x7c]
push 0x4d6d98
push edx
call fcn.0047a1b4
add esp, 8
test eax, eax
je 0x423ca2
lea eax, [esp + 0x7c]
push 0x4d6d94
push eax
call fcn.0047a1b4
add esp, 8
test eax, eax
je 0x423ca2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x423c32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048a988
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4244e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x424542
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x424550
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49658b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4dff8c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x424688
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4245b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048a988
xor eax, eax
jmp 0x4246ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048aac5
push esi
lea ecx, [esp + 0xc]
call fcn.0048ad54
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d6dd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4246dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004244e0
test eax, eax
jne 0x4246dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004244e0
test eax, eax
jne 0x4246dd
lea eax, [esp + 0x14]
push 0x4d6db0
push eax
call fcn.0047b350
mov esi, eax
add esp, 8
test esi, esi
jne 0x4246bc
lea ecx, [esp + 0x14]
push 0x4d6dac
push ecx
call fcn.0047b2d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4246bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4246bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048aa75
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4245ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048a988
xor eax, eax
jmp 0x4246ff
mov byte [esi], 0
push 0x4d6da8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048a988
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4