joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x434f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], esi
mov dword [esi], ebx
push 8
mov dword [esp + 0x30], ebx
call fcn.0040e600
add esp, 4
cmp eax, ebx
je 0x403c52
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov dword [esi], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00405bd0
mov eax, dword [esi]
add esp, 0xc
mov dword [eax], esi
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x38]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00404990
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], ebx
call fcn.00407970
push 0x4439b8
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.std::bad_alloc.0
call fcn.0040f520
int3
Function at 0x404390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x434eb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push ebp
push esi
xor esi, esi
mov ebx, ecx
mov dword [esp + 0x14], esi
push edi
cmp dword [ebx + 0x44], esi
je 0x404577
cmp byte [ebx + 0x49], 0
je 0x404577
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404551
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.00403bc0
mov dword [esp + 0x7c], esi
nop
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x54]
call fcn.00403db0
mov esi, eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.00403db0
mov edi, eax
mov ecx, esi
mov byte [esp + 0x7c], 2
call fcn.00404d10
mov ebp, dword [esp + 0x64]
mov ecx, edi
mov esi, eax
call fcn.00404d10
mov ecx, dword [ebx + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0x1c]
push edi
add ebp, esi
push ebp
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x7c], 1
call fcn.00401130
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7c], 0
call fcn.00401130
mov eax, esi
sub eax, 0
je 0x40448a
dec eax
je 0x40448e
sub eax, 2
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x50]
jne 0x40454c
jmp 0x404572
mov byte [ebx + 0x49], 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x54]
call fcn.00403db0
mov ecx, eax
mov byte [esp + 0x7c], 3
call fcn.00404d10
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
sub esi, eax
mov byte [esp + 0x7c], 0
call fcn.00401130
test esi, esi
je 0x4044f8
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x54]
call fcn.00403db0
mov byte [esp + 0x7c], 4
or dword [esp + 0x18], 1
mov ecx, eax
call fcn.00404d10
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040ce20
add esp, 0x10
mov byte [esp + 0x17], 1
cmp esi, eax
jne 0x4044fd
mov byte [esp + 0x17], 0
mov dword [esp + 0x7c], 0
test byte [esp + 0x18], 1
je 0x40451a
and dword [esp + 0x18], 0xfffffffe
lea ecx, [esp + 0x44]
call fcn.00401130
cmp byte [esp + 0x17], 0
jne 0x404540
cmp byte [ebx + 0x49], 0
je 0x404566
test esi, esi
jne 0x4043f0
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.00403c80
jmp 0x4043f0
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00402510
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00402510
mov ecx, dword [esp + 0x74]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x434d9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 0xc], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406fe0
push 0x18
push str.E:Program_Files__x86_Microsoft_Visual_Studio_10.0VCinclude_streambuf
mov dword [esp + 0x20], 0
call fcn.004061d0
push eax
push 4
call fcn.00406100
mov edi, eax
add esp, 0x10
test edi, edi
je 0x404ba5
push ebx
call fcn.004066d0
mov dword [edi], eax
call fcn.004064e0
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406f70
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404b99
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406fb0
pop ebx
jmp 0x404ba7
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40f110
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445460]
jne 0x40f11a
repz ret
jmp fcn.0041edd0
Function at 0x416d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x416d98
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.0040d310
add esp, 0x14
cmp eax, 1
jne 0x416d98
int3
cmp dword [ebp - 8], 0
jne 0x416dd9
call fcn.004139e0
mov dword [eax], 0
call fcn.004139b0
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.00407fa0
add esp, 0x14
mov eax, 0x16
jmp 0x416eb1
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x416e09
push str.__amode___6____0_
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.0040d310
add esp, 0x14
cmp eax, 1
jne 0x416e09
int3
cmp dword [ebp - 0xc], 0
jne 0x416e47
call fcn.004139e0
mov dword [eax], 0
call fcn.004139b0
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str.__amode___6____0_
call fcn.00407fa0
add esp, 0x14
mov eax, 0x16
jmp 0x416eb1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x416e72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413900
add esp, 4
call fcn.004139b0
mov eax, dword [eax]
jmp 0x416eb1
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x416e7e
xor eax, eax
jmp 0x416eb1
mov eax, dword [ebp - 4]
and eax, 1
je 0x416eaf
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x416eaf
call fcn.004139e0
mov dword [eax], 5
call fcn.004139b0
mov dword [eax], 0xd
call fcn.004139b0
mov eax, dword [eax]
jmp 0x416eb1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40196a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x403702
call fcn.00401c44
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4019aa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019aa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4019c2
cmp eax, 0x20b
je 0x4019af
mov dword [ebp - 0x1c], ebx
jmp 0x4019d6
cmp dword [ecx + 0x84], 0xe
jbe 0x4019aa
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4019d0
cmp dword [ecx + 0x74], 0xe
jbe 0x4019aa
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR100.dll___set_app_type]
pop ecx
or dword [0x40357e], 0xffffffff
or dword [0x403582], 0xffffffff
call dword [sym.imp.MSVCR100.dll___p__fmode]
mov ecx, dword [0x403138]
mov dword [eax], ecx
call dword [sym.imp.MSVCR100.dll___p__commode]
mov ecx, dword [0x403134]
mov dword [eax], ecx
call fcn.00401ba3
call fcn.00401c3e
cmp dword [0x403018], ebx
jne 0x401a2a
push 0x401c41
call dword [sym.imp.MSVCR100.dll___setusermatherr]
pop ecx
call fcn.00401c2b
mov dword [0x40300c], 0x401fe4
push 0x403010
push 0x403008
call dword [sym.imp.MSVCR100.dll__initterm]
push 0x401be7
call fcn.00401b91
mov eax, dword [0x403130]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40312c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [0x403b40]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x401a81
push 0x403004
push section..data
call dword [sym.imp.MSVCR100.dll__initterm]
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x401b00
cmp al, bl
je 0x401aac
cmp dword [ebp - 0x20], ebx
jne 0x401b00
mov al, byte [esi]
cmp al, bl
je 0x401abc
cmp al, 0x20
ja 0x401abc
inc esi
mov dword [ebp - 0x24], esi
jmp 0x401aac
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x401ad8
movzx eax, word [ebp - 0x54]
jmp 0x401adb
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.004016c9
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x401af8
push esi
call dword [sym.imp.MSVCR100.dll_exit]
call dword [sym.imp.MSVCR100.dll__cexit]
jmp 0x401b56
cmp al, 0x22
jne 0x401b0f
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [0x403b48]
pop ecx
test eax, eax
je 0x401b22
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x401a9a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00401c7f
ret
Function at 0x401c95
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
cmp dword [0x4038b0], 0
jne 0x401ccf
mov dword [0x4038b0], 1
push ecx
push edi
lea edi, [0x4038b0]
add edi, 0x10
mov ecx, 0x50
shr ecx, 2
test ecx, ecx
je 0x401ccd
xor dword [edi], 0x41414141
add edi, 4
loop 0x401cc2
pop edi
pop ecx
cmp dword [0x403938], 0
jne 0x401d06
mov dword [0x403938], 1
push ecx
push edi
lea edi, [0x403938]
add edi, 0x10
mov ecx, 0x1a0
shr ecx, 2
test ecx, ecx
je 0x401d04
xor dword [edi], 0x41414141
add edi, 4
loop 0x401cf9
pop edi
pop ecx
push str._3___rso___AAAA42_3rso___AAAAAA__7_1_rso___AAAA_27_3pqqo___AAAA_5___o___AAAAAAA
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x403910], eax
mov ebx, eax
lea eax, str._a3___r_3_38AAAAA
call fcn.00401ee4
mov dword [0x403ae8], eax
lea eax, [0x403958]
call fcn.00401ee4
mov dword [0x403af0], eax
lea eax, [0x403978]
call fcn.00401ee4
mov dword [0x403af8], eax
lea eax, [0x403988]
call fcn.00401ee4
mov dword [0x403b00], eax
lea eax, [0x4039a8]
call fcn.00401ee4
mov dword [0x403b08], eax
push 0x4038d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x403918], eax
mov ebx, eax
lea eax, [0x4039b8]
call fcn.00401ee4
mov dword [0x403b10], eax
lea eax, [0x4039c8]
call fcn.00401ee4
mov dword [0x403b18], eax
lea eax, [0x4039d8]
call fcn.00401ee4
mov dword [0x403b20], eax
push 0x4038e0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x403920], eax
mov ebx, eax
lea eax, [0x4039e8]
call fcn.00401ee4
mov dword [0x403b28], eax
lea eax, [0x4039f8]
call fcn.00401ee4
mov dword [0x403b30], eax
lea eax, [0x403a08]
call fcn.00401ee4
mov dword [0x403b38], eax
push 0x4038f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x403928], eax
mov ebx, eax
lea eax, [0x403a18]
call fcn.00401ee4
mov dword [0x403b40], eax
lea eax, [0x403a28]
call fcn.00401ee4
mov dword [0x403b48], eax
lea eax, [0x403a38]
call fcn.00401ee4
mov dword [0x403b50], eax
lea eax, [0x403a48]
call fcn.00401ee4
mov dword [0x403b58], eax
lea eax, [0x403a58]
call fcn.00401ee4
mov dword [0x403b60], eax
lea eax, [0x403a68]
call fcn.00401ee4
mov dword [0x403b68], eax
lea eax, [0x403a78]
call fcn.00401ee4
mov dword [0x403b70], eax
lea eax, [0x403a88]
call fcn.00401ee4
mov dword [0x403b78], eax
lea eax, [0x403a98]
call fcn.00401ee4
mov dword [0x403b80], eax
lea eax, [0x403aa8]
call fcn.00401ee4
mov dword [0x403b88], eax
lea eax, [0x403ab8]
call fcn.00401ee4
mov dword [0x403b90], eax
lea eax, [0x403ac8]
call fcn.00401ee4
mov dword [0x403b98], eax
push 0x403900
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x403930], eax
mov ebx, eax
lea eax, [0x403ad8]
call fcn.00401ee4
mov dword [0x403ba0], eax
pop edi
pop esi
pop ebx
ret
Function at 0x401940
Capabilities:
Acquire debug privileges
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417d90
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x420004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov ecx, str.SeDebugPrivilege
call fcn.00401410
mov ecx, str.SeSecurityPrivilege
call fcn.00401410
mov ecx, str.SeCreateTokenPrivilege
call fcn.00401410
mov ecx, str.SeAssignPrimaryTokenPrivilege
call fcn.00401410
mov ecx, str.SeTakeOwnershipPrivilege
call fcn.00401410
call fcn.004014d0
mov dword [ebp - 4], 0xffffffff
jmp 0x4019c3
push 0
push 0
push 0
push 0x4017e0
push 0
push 0
call fcn.00405fda
add esp, 0x18
mov dword [0x4215dc], eax
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b60
Capabilities:
Check if file exists
Delete file
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417db0
mov eax, dword fs:[0]
push eax
sub esp, 0xe18
mov eax, dword [0x420004]
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 - 0x10], esp
push 0x400
push 0
lea eax, [ebp - 0xa1c]
push eax
call fcn.00403580
push 0x421a20
push str._supdate.ini
push 0x200
lea eax, [ebp - 0xa1c]
push eax
call fcn.00401050
add esp, 0x1c
lea eax, [ebp - 0xa1c]
push eax
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call edi
test eax, eax
je 0x401d30
mov dword [ebp - 4], 0
push 0x400
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.00403580
mov dword [ebp - 0xe20], 0
xor esi, esi
mov dword [ebp - 0xe24], esi
push 0x41dc0c
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xe20]
push eax
call fcn.004058e0
add esp, 0x18
mov ebx, eax
test ebx, ebx
jne 0x401d29
nop word [eax + eax]
push dword [ebp - 0xe20]
call fcn.0040606d
add esp, 4
test eax, eax
jne 0x401d06
push dword [ebp - 0xe20]
push 1
push 0x400
lea eax, [ebp - 0x61c]
push eax
call fcn.00406264
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call edi
test eax, eax
je 0x401c30
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00403580
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x21c]
call section..text
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push 0x400
push 0
lea eax, [ebp - 0xe1c]
push eax
call fcn.00403580
lea eax, [ebp - 0x21c]
push eax
push 0x421a20
push str._s_s
push 0x200
lea eax, [ebp - 0xe1c]
push eax
call fcn.00401050
add esp, 0x20
push 3
lea eax, [ebp - 0xe1c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x401c30
inc esi
mov dword [ebp - 0xe24], esi
jmp 0x401c30
test ebx, ebx
jne 0x401d29
push dword [ebp - 0xe20]
call fcn.00405c2d
add esp, 4
test esi, esi
jne 0x401d29
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
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.004027a3
mov esp, ebp
pop ebp
ret
Function at 0x401ff0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40202d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027a3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402074
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00405d11
add esp, 8
test eax, eax
je 0x40208e
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x402050
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004027a3
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x402074

Function at 0x4020a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x238], ecx
push ebx
push 2
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4020e3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027a3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40215e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
push dword [ebp - 0x238]
lea eax, [ebp - 0x20c]
push eax
call fcn.00405d11
add esp, 8
test eax, eax
jne 0x40214e
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40214e
cmp dword [ebp - 0x234], edi
je 0x402178
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x402110
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004027a3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x228]
jmp 0x40215e
Function at 0x402180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x22c
lea eax, [ebp - 0x230]
mov ebx, ecx
push 0
push eax
call fcn.00403580
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4021e1
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4021f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027a3
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push str.EXPLORER.EXE
push eax
call fcn.00405d11
add esp, 8
test eax, eax
je 0x402243
lea eax, [ebp - 0x230]
push eax
push edi
call esi
test eax, eax
jne 0x402200
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004027a3
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004027a3
mov esp, ebp
pop ebp
ret
Function at 0x402280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4022be
lea ecx, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00402180
test eax, eax
jne 0x4022c6
sub esp, 8
mov ecx, str._PP1_GetTokenByName___fail_
call fcn.004010d0
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x402306
sub esp, 8
mov ecx, str._PP_DuplicateTokenEx___fail_
call fcn.004010d0
add esp, 8
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 4
push eax
push 0xc
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x402351
sub esp, 8
mov ecx, str._PP_SetTokenInformation___fail_
call fcn.004010d0
add esp, 8
push dword [esp + 8]
call esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00403580
add esp, 0xc
mov dword [esp + 0x20], 0x44
xor eax, eax
mov dword [esp + 0x28], str.winsta0default
mov word [esp + 0x50], ax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push edi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 8]
mov edi, eax
call esi
test edi, edi
jne 0x4023b8
sub esp, 8
mov ecx, str._PP2_CreateProcessAsUser___false_
call fcn.004010d0
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4023c3
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4023ce
push eax
call esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cf47
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040cdc6

Function at 0x40e140
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040de00