joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594168
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6071d4]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4d619b
cmp byte [ebx + 0x3d], 0
je 0x4d619b
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a143c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
sete al
test al, al
je 0x4d60b5
xor al, al
jmp 0x4d619d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004bb740
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
nop dword [eax]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
add eax, ecx
push eax
push edx
lea eax, [ebx + 0x40]
mov esi, dword [esi + 0x20]
mov ecx, esi
push eax
call dword [0x5a143c]
mov ecx, edi
call esi
sub eax, 0
je 0x4d612a
sub eax, 1
je 0x4d612e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4d6181
xor bl, bl
jmp 0x4d6183
mov byte [ebx + 0x3d], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x4d6163
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00577039
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4d6126
cmp byte [ebx + 0x3d], 0
je 0x4d6181
test esi, esi
jne 0x4d60e0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b7d20
jmp 0x4d60da
mov bl, 1
cmp edi, 0x10
jb 0x4d6197
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b7bd0
mov al, bl
jmp 0x4d619d
mov al, 1
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.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x4d66f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5921e6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0053b416
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00540046
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df350
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4df37c
mov ecx, edi
call dword [0x5a143c]
call edi
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4df391
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x34], 0
cmp dword [esi + 0x2c], 0
je 0x4df3a9
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x4df3a2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esi], 0
je 0x4df3c6
cmp dword [0x611858], 0
jle 0x4df3c3
call dword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x611858]
mov byte [esi], 0
cmp byte [esi + 1], 0
je 0x4df410
mov edi, dword [0x61184c]
test edi, edi
jne 0x4df3f6
push 0x30
call fcn.0053b416
mov edi, eax
push 0x102
push edi
mov dword [ebp - 8], edi
call fcn.0053c95f
add esp, 0xc
mov dword [0x61184c], edi
push edi
call fcn.0053c9a5
add esp, 4
test eax, eax
je 0x4df40c
push eax
call fcn.0053c464
add esp, 4
mov byte [esi + 1], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x4ecb00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov esi, dword [edi + 0x10]
jb 0x4ecb1c
mov edx, dword [edi]
jmp 0x4ecb1e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4ecb44
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4ecb30
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [ecx + 0x94]
mov esi, edx
mov eax, esi
or eax, 1
mov dword [ebp - 0x14], eax
bsr eax, eax
mov dword [ebp - 0xc], eax
movzx eax, al
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4ecb97
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
and edx, 0xfffffffe
sub eax, edx
cmp dword [ecx + eax*4], 0
setne al
test al, al
jne 0x4ecb9d
mov ecx, dword [ebp - 8]
push esi
call fcn.004ecd60
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
bsr eax, eax
or ebx, 1
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
and eax, 0xfffffffe
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + ecx*4 + 4]
mov esi, dword [esi + eax*4]
test esi, esi
je 0x4ecc4b
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x4ecc4b
jne 0x4ecc45
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4ecc26
mov eax, dword [edi]
jmp 0x4ecc28
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4ecc33
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x4ecc5d
mov esi, dword [esi]
test esi, esi
jne 0x4ecc10
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ffcf0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov esi, dword [edi + 0x10]
jb 0x4ffd0c
mov edx, dword [edi]
jmp 0x4ffd0e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4ffd34
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4ffd20
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [ecx + 0x94]
mov esi, edx
mov eax, esi
or eax, 1
mov dword [ebp - 0x14], eax
bsr eax, eax
mov dword [ebp - 0xc], eax
movzx eax, al
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4ffd87
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
and edx, 0xfffffffe
sub eax, edx
cmp dword [ecx + eax*4], 0
setne al
test al, al
jne 0x4ffd8d
mov ecx, dword [ebp - 8]
push esi
call fcn.00500360
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
bsr eax, eax
or ebx, 1
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
and eax, 0xfffffffe
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + ecx*4 + 4]
mov esi, dword [esi + eax*4]
test esi, esi
je 0x4ffe3b
nop dword [eax]
mov eax, dword [esi + 0x28]
cmp eax, ebx
ja 0x4ffe3b
jne 0x4ffe35
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4ffe16
mov eax, dword [edi]
jmp 0x4ffe18
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4ffe23
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x4ffe4d
mov esi, dword [esi]
test esi, esi
jne 0x4ffe00
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x505580
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov esi, dword [edi + 0x10]
jb 0x50559c
mov edx, dword [edi]
jmp 0x50559e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x5055c4
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x5055b0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [ecx + 0x94]
mov esi, edx
mov eax, esi
or eax, 1
mov dword [ebp - 0x14], eax
bsr eax, eax
mov dword [ebp - 0xc], eax
movzx eax, al
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x505617
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
and edx, 0xfffffffe
sub eax, edx
cmp dword [ecx + eax*4], 0
setne al
test al, al
jne 0x50561d
mov ecx, dword [ebp - 8]
push esi
call fcn.005057f0
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
bsr eax, eax
or ebx, 1
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
and eax, 0xfffffffe
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + ecx*4 + 4]
mov esi, dword [esi + eax*4]
test esi, esi
je 0x5056cb
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x5056cb
jne 0x5056c5
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x5056a6
mov eax, dword [edi]
jmp 0x5056a8
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x5056b3
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x5056dd
mov esi, dword [esi]
test esi, esi
jne 0x505690
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x505910
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 8
lea edx, [edi + 4]
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
jb 0x50592c
mov edx, dword [edx]
push ebx
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x505954
nop dword [eax + eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x505940
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [esi + 0x94]
mov eax, edx
mov dword [ebp - 8], eax
or eax, 1
mov dword [ebp - 0x18], eax
bsr eax, eax
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, dword [esi + ecx*4 + 4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5059a8
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 8]
and edx, 0xfffffffe
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x14]
cmp dword [edx + eax*4], 0
setne al
test al, al
jne 0x5059b6
jmp 0x5059ab
mov ecx, dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.005057f0
mov edi, dword [ebp + 0xc]
movzx eax, bl
mov edx, 1
mov dword [ebp - 0x14], ebx
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x1d], al
movzx eax, bh
pop ebx
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x1f], al
movzx eax, byte [ebp - 1]
mov dword [ebp - 4], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x18]
bsr eax, eax
movzx ecx, al
shl edx, cl
mov dword [ebp - 4], eax
and edx, 0xfffffffe
mov eax, dword [ebp - 8]
mov ecx, dword [esi + ecx*4 + 4]
sub eax, edx
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x505a2c
nop
cmp eax, edi
je 0x505a3d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x505a20
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi]
mov dword [ecx], esi
mov al, byte [edi + 0x24]
not al
test al, 1
jne 0x505a52
lea ecx, [edi + 4]
call fcn.00505490
push edi
call fcn.00405150
mov ecx, dword [ebp - 0x10]
add esp, 4
dec dword [ecx + 0x8c]
test esi, esi
je 0x505a77
mov al, byte [esi + 0x24]
not al
test al, 1
je 0x505a77
mov esi, dword [esi]
test esi, esi
jne 0x505a68
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50c850
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x50c905
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004e7330
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004b06d0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 1
call fcn.004c3520
mov ecx, eax
call fcn.004bff50
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50c8d8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x50c9ae
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
jmp 0x50c9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x50c922
cmp eax, 0x3e5
jne 0x50c935
mov bl, 1
mov al, bl
jmp 0x50c9b0
push dword [esi + 0x10]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x50c935
mov al, bl
jmp 0x50c9b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.004e7330
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b06d0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 3
call fcn.004c3520
mov ecx, eax
call fcn.004bff50
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x50c985
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x50c9ae
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004a9d40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x50de10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c808
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6071d4]
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 ebx, edx
mov dword [ebp - 0x258], ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x50df79
push 0x228
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0056a470
add esp, 0xc
mov dword [ebp - 0x254], 0x22c
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x50df6e
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x230], ax
je 0x50ded5
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x50dec6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.004a96a0
mov ecx, dword [ebp - 0x258]
lea esi, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
call fcn.004a9460
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x50df28
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0050e650
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50df44
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x254]
push eax
push edi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x50dea0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x50df7c
or eax, 0xffffffff
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.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x513d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0053bd50
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x108c], ecx
mov eax, dword [ecx + 0x10]
lea edx, [eax*2 + 2]
mov eax, dword [ebx]
mov dword [eax], edx
cmp dword [ecx + 0x14], 8
jb 0x513d40
mov ecx, dword [ecx]
mov dword [ebp - 0x108c], ecx
mov eax, dword [ebx]
mov esi, dword [eax]
test esi, esi
je 0x513ec3
push edi
nop dword [eax]
cmp esi, 0x1000
jbe 0x513d66
mov edi, 0x1000
mov byte [ebp - 0x1088], 0x20
jmp 0x513d9c
mov eax, dword [ebp + 0xc]
mov edi, esi
sub eax, 1
je 0x513d95
sub eax, 1
je 0x513d8c
sub eax, 1
je 0x513d83
mov byte [ebp - 0x1088], 0x23
jmp 0x513d9c
mov byte [ebp - 0x1088], 0x7e
jmp 0x513d9c
mov byte [ebp - 0x1088], 0x24
jmp 0x513d9c
mov byte [ebp - 0x1088], 0x40
push edi
push ecx
lea eax, [ebp - 0x1087]
push eax
call fcn.00569ef0
add esp, 0xc
lea eax, [edi + 1]
mov dword [ebp - 0x1090], eax
push 0
push dword [ebx + 0xc]
push eax
lea eax, [ebp - 0x1088]
push eax
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
cmp dword [eax], 0
je 0x513e19
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 1]
cmp ecx, dword [eax]
jne 0x513e19
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x108c]
add ecx, edi
mov dword [ebp - 0x108c], ecx
sub esi, edi
jne 0x513d50
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x513ec2
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0056a470
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax], 0
jne 0x513ea1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x513e77
push str.Finished_writing:_the_pipe_has_been_closed
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00513580
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret 8
push eax
push str.Error_writing_to_the_pipe___d_
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00513580
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0xc]
push dword [eax]
lea eax, [ebp - 0x84]
push dword [ebp - 0x1090]
push str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
push 0x7f
push eax
call fcn.00513580
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053b206
mov esp, ebp
pop ebp
ret 8
Function at 0x5144e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d376
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
jne 0x514521
mov esi, 0xffffffe9
jmp 0x514689
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x18], 0
push eax
call fcn.004a99e0
push 0x5df834
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a94b0
push 0x5dff58
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004a94b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0051a360
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x514591
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004a9d40
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x5145be
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00514ab0
lea eax, [ebp - 0x28]
push eax
lea edx, [esi + 4]
lea ecx, [ebp - 0x40]
call fcn.004b0470
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x514616
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5145f9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004a9850
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x51462f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x51465e
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
jmp 0x514660
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x514675
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x51469e
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004a9d40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret 0x18