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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x40e2bb
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40e2cc
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40e2db
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x40e2e8
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.004053d4
test eax, eax
je 0x40e315
test esi, esi
je 0x40e315
cmp word [esi], 0
je 0x40e315
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40e32c
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e345
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40e345
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40e3af
mov dword [ebx + 4], edi
test esi, esi
je 0x40e37a
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040ff70
jmp 0x40e383
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x40e396
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040f798
jmp 0x40e3a5
lea edx, [ebx + 0x17]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040fd50
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040e494
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f798
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x40f968
cmp dword [ebp + 0xc], 8
jne 0x40f930

Function at 0x40f7a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x40f75a
push dword [ebp + 0x14]
call fcn.0040ea6f
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0040eaaa
sub edx, dword [ebp + 0x468a616]
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x40f773
push ss
cmpsb byte [esi], byte es:[edi]
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
je 0x40f968
cmp dword [ebp + 0xc], 8
jne 0x40f930
invalid
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid

Function at 0x40f7c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
invalid
test dword [ecx - 7], edx
invalid
Function at 0x10001020
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10007170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret
Function at 0x100014b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov dword [esi], 0
mov byte [esp + 0xc], 0
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0xc]
push ecx
call fcn.10007090
add esp, 0x10
cmp byte [esp], 0
je 0x1000153a
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100014f7
mov edx, dword [str.NPAV_DBG.ini]
mov ecx, dword [0x1001bb58]
mov dword [eax], edx
mov edx, dword [0x1001bb5c]
mov dword [eax + 4], ecx
mov cl, byte [0x1001bb60]
mov dword [eax + 8], edx
lea edx, [esp]
push edx
push 0
push 0x1001bab8
push str.data
mov byte [eax + 0xc], cl
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
mov ecx, dword [esp + 0x104]
xor ecx, esp
mov eax, esi
call fcn.100195d2
add esp, 0x108
ret

Function at 0x100015b0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x100015a0
push 0
push 0
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
pop ecx
ret

Function at 0x10001660
Capabilities:
Create directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push esi
mov edi, str.IN_CheckForPendingJOb__
call fcn.100026d0
push 0x1ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call fcn.10001b60
lea eax, [esp + 8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100016a8
mov edx, dword [str.LaunchMgr]
mov ecx, dword [0x1001bc30]
mov dword [eax], edx
mov dx, word [0x1001bc34]
mov dword [eax + 4], ecx
mov cl, byte [0x1001bc36]
mov word [eax + 8], dx
push 0
lea edx, [esp + 0xc]
push edx
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 8]
mov ecx, esi
call fcn.10001840
push esi
mov edi, str.OUT_CheckForPendingJOb__
call fcn.100026d0
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.100195d2
add esp, 0x210
ret
Function at 0x10001720
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
push ebx
mov edi, str.Inside_NotifyJob_Change
call fcn.100026d0
push 0x1ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call fcn.10001b60
lea eax, [esp + 8]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001770
mov edx, dword [str.LaunchMgr]
mov ecx, dword [0x1001bc30]
mov dword [eax], edx
mov dx, word [0x1001bc34]
mov dword [eax + 4], ecx
mov cl, byte [0x1001bc36]
mov word [eax + 8], dx
push 0
lea edx, [esp + 0xc]
push edx
mov byte [eax + 0xa], cl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ebx, [ebx]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x100017cb
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001820
test esi, esi
je 0x10001820
push ebx
mov edi, str.Waiting_on_job_Chnage
call fcn.100026d0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov edi, str.job_Chnage_Found
call fcn.100026d0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 8]
mov ecx, ebx
call fcn.10001840
push esi
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
jmp 0x100017b0
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.100195d2
mov esp, ebp
pop ebp
ret
Function at 0x10001840
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x554
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push ebx
mov edi, str.IN_SearchForJobs__
mov dword [esp + 0x14], esi
call fcn.100026d0
push 0x1ff
lea eax, [esp + 0x35d]
push 0
push eax
mov byte [esp + 0x364], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x1ff
lea ecx, [esp + 0x15d]
push 0
push ecx
mov byte [esp + 0x164], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea edx, [esp + 0x35c]
push str._s.
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x10001907
push ebx
mov edi, str.OUT1_SearchForJobs__
call fcn.100026d0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.100195d2
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x10]
test byte [esp + 0x18], 0x10
jne 0x1000197a
push 0x200
lea edx, [esp + 0x15c]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0x160]
push 0x1001bccc
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
lea esi, [esp + 0x158]
call fcn.10001ab0
push ebx
test eax, eax
je 0x10001970
mov edi, str.Successfully_Job_Action_Done
call fcn.100026d0
push ebx
mov ecx, esi
call fcn.100019c0
test eax, eax
je 0x1000197a
push ebx
mov edi, str.Successfully_Job_File_Moved
jmp 0x10001975
mov edi, str.Problem_in_Job_Action___Done_Move
call fcn.100026d0
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10001903
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
mov edi, str.OUT2_SearchForJobs__
call fcn.100026d0
mov ecx, dword [esp + 0x55c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100195d2
mov esp, ebp
pop ebp
ret
Function at 0x100019c0
Capabilities:
Create directory
Move file

Disassembly:
sub esp, 0x804
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x800], eax
push ebp
mov ebp, dword [esp + 0x80c]
push esi
push edi
push 0x3ff
lea eax, [esp + 0x411]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x418], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x40c]
push ecx
call fcn.10001b60
push 0x3ff
lea edx, [esp + 0x11]
push 0
push edx
mov byte [esp + 0x18], 0
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x418]
push eax
lea ecx, [esp + 0x1c]
push str._sLaunchMgrDoneJob_
push ecx
call edi
add esp, 0x18
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push str._s_s
push ecx
call edi
add esp, 0x10
push 1
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x10001a8b
push ebp
mov edi, str.Failed_To_Move_File
call fcn.100026d0
mov ecx, dword [esp + 0x80c]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.100195d2
add esp, 0x804
ret 4
Function at 0x10002400
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x170
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebp
mov ebp, dword [esp + 0x178]
push edi
push ebp
mov edi, str.Inside_CallFile___Shell_Function..._Path_and_Cmdline_Below
mov dword [esp + 0x10], 0
call fcn.100026d0
push ebp
mov edi, esi
call fcn.100026d0
push ebp
mov edi, ebx
call fcn.100026d0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10002535
mov edi, 1
cmp dword [0x10022868], edi
jne 0x100024b2
push 0x3c
xor edi, edi
lea eax, [esp + 0x24]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x3c
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], str.runAs
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x3c], 0x1001bb53
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [esp + 0xc], eax
jmp 0x10002540
push 0x44
lea edx, [esp + 0x24]
push 0
push edx
call sub.MSVCR90.dll_memset
push ebx
xor eax, eax
push esi
lea edx, [esp + 0x7c]
mov ecx, 5
push str._s__s
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6e], ax
mov dword [esp + 0x68], edi
mov word [esp + 0x6c], cx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea edx, [esp + 0x88]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10002540
mov dword [esp + 0xc], edi
jmp 0x10002540
push ebp
mov edi, str.Shelling_commad_file_not_exist
call fcn.100026d0
push ebp
mov edi, str.Outside_CallFile___Shell_Function...
call fcn.100026d0
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
xor ecx, esp
call fcn.100195d2
add esp, 0x170
ret 4
Function at 0x10002570
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
push edi
push 0x9c
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, 1
mov dword [0x10022074], edi
mov dword [0x10022868], esi
mov dword [0x1002286c], esi
mov dword [0x10022870], esi
mov dword [0x10022874], esi
mov dword [0x10022878], esi
mov dword [0x1002287c], esi
mov dword [0x10022880], esi
mov dword [0x10022884], esi
mov dword [0x10022888], esi
cmp dword [esp + 0x1c], edi
jne 0x100025fb
mov dword [0x10022074], esi
mov eax, dword [esp + 0x10]
cmp eax, 6
jne 0x10002625
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x10002612
mov dword [0x1002286c], edi
mov dword [0x10022868], edi
cmp eax, 2
jne 0x1000266e
mov dword [0x10022880], edi
jmp 0x1000266e
cmp eax, 5
jne 0x1000266e
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x1000263b
mov dword [0x10022870], edi
jmp 0x1000266e
cmp eax, edi
jne 0x1000266e
mov ax, word [esp + 0xa0]
cmp ax, 2
jne 0x10002655
mov dword [0x10022874], edi
jmp 0x1000266e
cmp ax, di
jne 0x10002662
mov dword [0x10022878], edi
jmp 0x1000266e
cmp ax, 3
jne 0x1000266e
mov dword [0x1002287c], edi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002244c], eax
cmp eax, esi
je 0x100026a4
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1002244c]
cmp dword [esp + 8], esi
je 0x100026b0
mov dword [0x10022884], edi
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
xor ecx, esp
call fcn.100195d2
add esp, 0xa4
ret
Function at 0x10003220
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000327c
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003250
mov ecx, dword [esp]
sub eax, edx
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10003284
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret 4
mov eax, dword [esp]
test eax, eax
je 0x10003292
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret 4
Function at 0x100032a0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebp
push esi
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x124
mov esi, eax
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x24], ebp
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x63
lea ecx, [esp + 0x145]
push ebp
push ecx
mov byte [esp + 0x14c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x63
lea edx, [esp + 0x1ad]
push ebp
push edx
mov byte [esp + 0x1b4], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x14c]
add esp, 0xc
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10003325
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10003438
mov edi, 1
call fcn.10003650
push 0
push 2
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100034cb
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
mov esi, dword [esp + 0x10]
lea esp, [esp]
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1ac]
push 0x1001c394
push eax
call ebp
add esp, 0xc
test edi, edi
jne 0x1000343f
lea ecx, [esp + 0x3c]
push 0x5c
push ecx
call dword [sym.imp.MSVCR90.dll_strrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x100033b6
inc esi
lea edx, [esp + 0x140]
push esi
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10003491
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0x144]
push ecx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10003491
lea edx, [esp + 0x140]
push edx
push esi
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
jne 0x10003491
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003380
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x100034cd
xor edi, edi
jmp 0x1000334a
cmp edi, 1
jne 0x100033b6
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10003491
lea ecx, [esp + 0x1a8]
push ecx
lea edx, [esp + 0x144]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10003491
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x40]
push ecx
jmp 0x100033fa
mov edx, dword [esp + 0x20]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10003422
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x100034cd
mov eax, ebp
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100195d2
add esp, 0x20c
ret 4
Function at 0x100034f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1001a86c
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10022018]
xor eax, esp
push eax
lea eax, [esp + 0x164]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x174]
mov esi, ecx
push ebx
mov edi, str.IN_ParseFileKP
mov dword [esp + 0x18], esi
call fcn.100026d0
push ebx
mov edi, esi
call fcn.100026d0
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000357a
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x3c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10003581
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000360b
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x58]
push esi
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x100035d0
mov eax, dword [esp + 0x3c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10003635
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov ebx, eax
call ebp
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003587
push edi
call ebp
mov edx, dword [esp + 0x174]
push edx
mov edi, str.OUT_ParseFileKP
call fcn.100026d0
mov eax, ebx
mov ecx, dword [esp + 0x164]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100195d2
add esp, 0x15c
ret 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x16c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
jmp 0x1000360b
Function at 0x10003650
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x20
push esi
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10003688
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed_with__d_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
xor eax, eax
pop esi
add esp, 0x20
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100036ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_failed_with__d_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
xor eax, eax
pop esi
add esp, 0x20
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x10003716
call esi
push eax
push str.AdjustTokenPrivileges_failed_with__d_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
xor eax, eax
pop esi
add esp, 0x20
ret
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x10003cc0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x10022018]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
push esi
push 0
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x10003d45
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x10003d45
mov ebp, dword [sym.imp.MSVCR90.dll__mbsicmp]
nop
lea edx, [esp + 0x2c]
push edi
push edx
call ebp
add esp, 8
test eax, eax
je 0x10003d31
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x10003d10
jmp 0x10003d45
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x200
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop esi
pop ebp
xor ecx, esp
call fcn.100195d2
add esp, 0x134
ret