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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6121d4]
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 0x4e01fb
cmp byte [ebx + 0x3d], 0
je 0x4e01fb
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5aa43c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
sete al
test al, al
je 0x4e0115
xor al, al
jmp 0x4e01fd
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.004bfb40
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 [0x5aa43c]
mov ecx, edi
call esi
sub eax, 0
je 0x4e018a
sub eax, 1
je 0x4e018e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4e01e1
xor bl, bl
jmp 0x4e01e3
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 0x4e01c3
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0057ca89
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4e0186
cmp byte [ebx + 0x3d], 0
je 0x4e01e1
test esi, esi
jne 0x4e0140
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004bcab0
jmp 0x4e013a
mov bl, 1
cmp edi, 0x10
jb 0x4e01f7
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b3ec0
mov al, bl
jmp 0x4e01fd
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.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x4e0720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x597d36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6121d4]
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.00540e66
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00545576
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 0x4e9250
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4e927c
mov ecx, edi
call dword [0x5aa43c]
call edi
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4e9291
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x34], 0
cmp dword [esi + 0x2c], 0
je 0x4e92a9
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x4e92a2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esi], 0
je 0x4e92c6
cmp dword [0x61ce18], 0
jle 0x4e92c3
call dword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x61ce18]
mov byte [esi], 0
cmp byte [esi + 1], 0
je 0x4e9310
mov edi, dword [0x61ce0c]
test edi, edi
jne 0x4e92f6
push 0x30
call fcn.00540e66
mov edi, eax
push 0x102
push edi
mov dword [ebp - 8], edi
call fcn.00545d40
add esp, 0xc
mov dword [0x61ce0c], edi
push edi
call fcn.00545d86
add esp, 4
test eax, eax
je 0x4e930c
push eax
call fcn.0054581a
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.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x4f6930
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 0x4f694c
mov edx, dword [edi]
jmp 0x4f694e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4f6974
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4f6960
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 0x4f69c7
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 0x4f69cd
mov ecx, dword [ebp - 8]
push esi
call fcn.004f6b90
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5d0270]
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 0x4f6a7b
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x4f6a7b
jne 0x4f6a75
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4f6a56
mov eax, dword [edi]
jmp 0x4f6a58
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4f6a63
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004b27f0
add esp, 8
test eax, eax
je 0x4f6a8d
mov esi, dword [esi]
test esi, esi
jne 0x4f6a40
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 0x506620
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 0x50663c
mov edx, dword [edi]
jmp 0x50663e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x506664
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x506650
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 0x5066b7
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 0x5066bd
mov ecx, dword [ebp - 8]
push esi
call fcn.00506ba0
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5d0270]
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 0x50676b
nop dword [eax]
mov eax, dword [esi + 0x28]
cmp eax, ebx
ja 0x50676b
jne 0x506765
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x506746
mov eax, dword [edi]
jmp 0x506748
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x506753
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004b27f0
add esp, 8
test eax, eax
je 0x50677d
mov esi, dword [esi]
test esi, esi
jne 0x506730
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 0x50ade0
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 0x50adfc
mov edx, dword [edi]
jmp 0x50adfe
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x50ae24
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x50ae10
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 0x50ae77
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 0x50ae7d
mov ecx, dword [ebp - 8]
push esi
call fcn.0050b050
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5d0270]
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 0x50af2b
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x50af2b
jne 0x50af25
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x50af06
mov eax, dword [edi]
jmp 0x50af08
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x50af13
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004b27f0
add esp, 8
test eax, eax
je 0x50af3d
mov esi, dword [esi]
test esi, esi
jne 0x50aef0
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 0x50b170
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 0x50b18c
mov edx, dword [edx]
push ebx
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x50b1b4
nop dword [eax + eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x50b1a0
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 0x50b208
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 0x50b216
jmp 0x50b20b
mov ecx, dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.0050b050
mov edi, dword [ebp + 0xc]
movzx eax, bl
mov edx, 1
mov dword [ebp - 0x14], ebx
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0x1d], al
movzx eax, bh
pop ebx
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5d0270]
mov byte [ebp - 0x1f], al
movzx eax, byte [ebp - 1]
mov dword [ebp - 4], 0
movzx eax, byte [eax + 0x5d0270]
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 0x50b28c
nop
cmp eax, edi
je 0x50b29d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x50b280
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 0x50b2b2
lea ecx, [edi + 4]
call fcn.0050acf0
push edi
call fcn.00407310
mov ecx, dword [ebp - 0x10]
add esp, 4
dec dword [ecx + 0x8c]
test esi, esi
je 0x50b2d7
mov al, byte [esi + 0x24]
not al
test al, 1
je 0x50b2d7
mov esi, dword [esi]
test esi, esi
jne 0x50b2c8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x512230
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a21c0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6121d4]
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 0x5122e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004c9f70
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004b5880
add esp, 4
push 1
push eax
mov byte [ebp - 4], 1
call fcn.004c7930
mov ecx, eax
call fcn.004c4350
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x5122b8
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
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 0x51238e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
jmp 0x512389
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x512302
cmp eax, 0x3e5
jne 0x512315
mov bl, 1
mov al, bl
jmp 0x512390
push dword [esi + 0x10]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x512315
mov al, bl
jmp 0x512390
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.004c9f70
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b5880
add esp, 4
push 1
push eax
mov byte [ebp - 4], 3
call fcn.004c7930
mov ecx, eax
call fcn.004c4350
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x512365
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004abec0
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 0x51238e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004abec0
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.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x5137f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2518
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6121d4]
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 0x513959
push 0x228
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0056fec0
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 0x51394e
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 0x5138b5
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5138a6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.004ab820
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.004ab5e0
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x513908
mov eax, dword [ebp - 0x24c]
mov ecx, ebx
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x25c]
push eax
call fcn.00514040
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x513924
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
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 0x513880
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x51395c
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.00540c56
mov esp, ebp
pop ebp
ret
Function at 0x5196f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.005417a0
mov eax, dword [0x6121d4]
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 0x519730
mov ecx, dword [ecx]
mov dword [ebp - 0x108c], ecx
mov eax, dword [ebx]
mov esi, dword [eax]
test esi, esi
je 0x5198b3
push edi
nop dword [eax]
cmp esi, 0x1000
jbe 0x519756
mov edi, 0x1000
mov byte [ebp - 0x1088], 0x20
jmp 0x51978c
mov eax, dword [ebp + 0xc]
mov edi, esi
sub eax, 1
je 0x519785
sub eax, 1
je 0x51977c
sub eax, 1
je 0x519773
mov byte [ebp - 0x1088], 0x23
jmp 0x51978c
mov byte [ebp - 0x1088], 0x7e
jmp 0x51978c
mov byte [ebp - 0x1088], 0x24
jmp 0x51978c
mov byte [ebp - 0x1088], 0x40
push edi
push ecx
lea eax, [ebp - 0x1087]
push eax
call fcn.0056f940
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 0x519809
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 1]
cmp ecx, dword [eax]
jne 0x519809
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 0x519740
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x5198b2
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0056fec0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax], 0
jne 0x519891
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x519867
push str.Finished_writing:_the_pipe_has_been_closed
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00518f70
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
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.00518f70
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
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.00518f70
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00540c56
mov esp, ebp
pop ebp
ret 8
Function at 0x519ed0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3086
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6121d4]
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 0x519f11
mov esi, 0xffffffe9
jmp 0x51a079
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.004abb60
push 0x5e91b4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004ab630
push 0x5e9a70
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004ab630
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x28]
call fcn.0051fdb0
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x519f81
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004abec0
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 0x519fae
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004abec0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0051a4a0
lea eax, [ebp - 0x28]
push eax
lea edx, [esi + 4]
lea ecx, [ebp - 0x40]
call fcn.004b5620
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x51a006
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x519fe9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
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.004ab9d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x51a01f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004abec0
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 0x51a04e
call dword [sym.imp.KERNEL32.dll_GetLastError]
or esi, 0xffffffff
jmp 0x51a050
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x51a065
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004abec0
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 0x51a08e
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004abec0
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.00540c56
mov esp, ebp
pop ebp
ret 0x18