joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487154
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5c
push 0
push 0
dec ecx
jne 0x48715c
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405700
lea eax, [ebp - 0x168]
mov edx, dword [0x4083bc]
call fcn.00405d18
xor eax, eax
push ebp
push 0x48736d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x48719b
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jle 0x487315
lea eax, [ebp - 4]
mov edx, 0x487384
call fcn.0040554c
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2ac]
mov ecx, 0x487390
mov edx, dword [ebp - 4]
call fcn.00405598
mov eax, dword [ebp - 0x2ac]
call fcn.00405710
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
lea eax, [ebp - 0x2bc]
mov edx, ebx
mov cl, 4
call fcn.0041527c
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x2cc]
call fcn.00416650
lea edx, [ebp - 0x2cc]
pop eax
call fcn.00416658
je 0x4872fc
jmp 0x4872e1
mov eax, dword [ebp - 0x2a8]
sub eax, 0x10
jne 0x4872a6
lea edx, [ebp - 0x2d0]
lea eax, [ebp - 0x27c]
call fcn.0040a7fc
mov eax, dword [ebp - 0x2d0]
mov edx, 0x48739c
call fcn.004056a8
je 0x4872e1
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x27c]
call fcn.0040a7fc
mov eax, dword [ebp - 0x2d4]
mov edx, 0x4873a8
call fcn.004056a8
je 0x4872e1
lea eax, [ebp - 0x2dc]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004054f0
mov ecx, dword [ebp - 0x2dc]
lea eax, [ebp - 0x2d8]
mov edx, dword [ebp - 4]
call fcn.00405598
mov eax, dword [ebp - 0x2d8]
call fcn.00487154
jmp 0x4872e1
lea eax, [ebp - 0x2e4]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004054f0
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
mov edx, dword [ebp - 4]
call fcn.00405598
mov eax, dword [ebp - 0x2e0]
call fcn.00405710
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a8]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x487216
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x168]
call fcn.0040a174
mov eax, dword [ebp - 4]
call fcn.0040a5a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487374
lea eax, [ebp - 0x2e4]
mov edx, 6
call fcn.004052a4
lea eax, [ebp - 0x2cc]
mov edx, dword [0x4010ac]
mov ecx, 2
call fcn.00405e34
lea eax, [ebp - 0x2ac]
call fcn.00405280
lea eax, [ebp - 0x168]
mov edx, dword [0x4083bc]
call fcn.00405de8
lea eax, [ebp - 4]
call fcn.00405280
ret
Function at 0x48a280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405700
xor eax, eax
push ebp
push 0x48a3c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x48a391
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00405710
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.00409e58
test al, al
jne 0x48a301
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004037a4
lea eax, [ebp - 0x1d0]
call fcn.00403540
call fcn.00403020
push dword [0x496ddc]
push 0x48a3d8
push dword [0x496de0]
push 0x48a3d8
push dword [0x496de4]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.00405614
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.00486530
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405a30
call fcn.00403e9c
call fcn.00403020
lea eax, [ebp - 0x1d0]
call fcn.0040386c
call fcn.00403020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48a39b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a3c8
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.004052a4
lea eax, [ebp - 4]
call fcn.00405280
ret
Function at 0x10001020
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10006c60
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.10006b90
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.100190a2
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.10002690
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.10002690
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.100190a2
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.10002690
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.10002690
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov edi, str.job_Chnage_Found
call fcn.10002690
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.100190a2
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.10002690
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.10002690
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.100190a2
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.10002690
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.10002690
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.10002690
mov ecx, dword [esp + 0x55c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.100190a2
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.10002690
mov ecx, dword [esp + 0x80c]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.100190a2
add esp, 0x804
ret 4
Function at 0x100023c0
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.10002690
push ebp
mov edi, esi
call fcn.10002690
push ebp
mov edi, ebx
call fcn.10002690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100024f5
mov edi, 1
cmp dword [0x10022868], edi
jne 0x10002472
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 0x10002500
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 0x10002500
mov dword [esp + 0xc], edi
jmp 0x10002500
push ebp
mov edi, str.Shelling_commad_file_not_exist
call fcn.10002690
push ebp
mov edi, str.Outside_CallFile___Shell_Function...
call fcn.10002690
mov ecx, dword [esp + 0x174]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
xor ecx, esp
call fcn.100190a2
add esp, 0x170
ret 4
Function at 0x10002530
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 0x100025bb
mov dword [0x10022074], esi
mov eax, dword [esp + 0x10]
cmp eax, 6
jne 0x100025e5
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x100025d2
mov dword [0x1002286c], edi
mov dword [0x10022868], edi
cmp eax, 2
jne 0x1000262e
mov dword [0x10022880], edi
jmp 0x1000262e
cmp eax, 5
jne 0x1000262e
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x100025fb
mov dword [0x10022870], edi
jmp 0x1000262e
cmp eax, edi
jne 0x1000262e
mov ax, word [esp + 0xa0]
cmp ax, 2
jne 0x10002615
mov dword [0x10022874], edi
jmp 0x1000262e
cmp ax, di
jne 0x10002622
mov dword [0x10022878], edi
jmp 0x1000262e
cmp ax, 3
jne 0x1000262e
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 0x10002664
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x1002244c]
cmp dword [esp + 8], esi
je 0x10002670
mov dword [0x10022884], edi
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
xor ecx, esp
call fcn.100190a2
add esp, 0xa4
ret
Function at 0x100031e0
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 0x1000323c
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003210
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 0x10003244
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 0x10003252
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret 4
Function at 0x10003260
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 0x100032e5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100033f8
mov edi, 1
call fcn.10003610
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 0x1000348b
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 0x1001c38c
push eax
call ebp
add esp, 0xc
test edi, edi
jne 0x100033ff
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 0x10003376
inc esi
lea edx, [esp + 0x140]
push esi
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x10003451
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 0x10003451
lea edx, [esp + 0x140]
push edx
push esi
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
jne 0x10003451
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003340
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1000348d
xor edi, edi
jmp 0x1000330a
cmp edi, 1
jne 0x10003376
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 0x10003451
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 0x10003451
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x40]
push ecx
jmp 0x100033ba
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 0x100033e2
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 0x1000348d
mov eax, ebp
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100190a2
add esp, 0x20c
ret 4
Function at 0x100034b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1001a32c
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.10002690
push ebx
mov edi, esi
call fcn.10002690
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000353a
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x3c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10003541
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100035cb
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 0x10003590
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 0x100035f5
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 0x10003547
push edi
call ebp
mov edx, dword [esp + 0x174]
push edx
mov edi, str.OUT_ParseFileKP
call fcn.10002690
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.100190a2
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 0x100035cb
Function at 0x10003610
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 0x10003648
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 0x1000367a
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 0x100036d6
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 0x10003c80
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 0x10003d05
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x10003d05
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 0x10003cf1
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x10003cd0
jmp 0x10003d05
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.100190a2
add esp, 0x134
ret