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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x63a404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x529d40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x529d7c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x529d7c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x529e63
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x529da4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x529dd7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0057e1d3
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x529e63
cmp eax, 1
jle 0x529e36
cmp eax, 3
jne 0x529e63
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0057e1d3
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x529e53
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057de79
add esp, 0x10
cmp edi, eax
jne 0x529e63
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x529d67
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret 4
Function at 0x52a840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x63a404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x52a8e1
cmp byte [esi + 0x3d], 0
je 0x52a8e1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x52a897
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x52a8a9
sub eax, 1
je 0x52a8ad
sub eax, 2
je 0x52a8e1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x52a8ca
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057de79
add esp, 0x10
cmp edi, eax
jne 0x52a897
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret

Function at 0x52aba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4680
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x63a404]
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.0056e7bf
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00570b36
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 0x52cfb0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x63a404]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, 2
mov dword [ebp - 0x808], ecx
mov ebx, edx
mov dword [ebp - 0x80c], eax
push edi
mov dword [ebp - 0x810], ebx
xor edi, edi
lea ecx, [esi + 0x26]
nop word [eax + eax]
xor edx, edx
mov dword [ebp + edi - 0x3fc], esi
lea eax, [esi - 2]
mov dword [ebp + edi - 0x404], eax
lea edi, [edi + 0x10]
lea eax, [esi - 2]
div ecx
movzx eax, byte [edx + str.x.sdfgywvnpq9t81u_nc8qcm_wetu9q_3v5ry80]
xor edx, edx
mov dword [ebp + edi - 0x814], eax
lea eax, [esi - 1]
mov dword [ebp + edi - 0x410], eax
lea eax, [esi - 1]
div ecx
movzx eax, byte [edx + str.x.sdfgywvnpq9t81u_nc8qcm_wetu9q_3v5ry80]
xor edx, edx
mov dword [ebp + edi - 0x810], eax
mov eax, esi
div ecx
movzx eax, byte [edx + str.x.sdfgywvnpq9t81u_nc8qcm_wetu9q_3v5ry80]
xor edx, edx
mov dword [ebp + edi - 0x80c], eax
lea eax, [esi + 1]
mov dword [ebp + edi - 0x408], eax
add esi, 4
div ecx
movzx eax, byte [edx + str.x.sdfgywvnpq9t81u_nc8qcm_wetu9q_3v5ry80]
mov dword [ebp + edi - 0x808], eax
lea eax, [esi - 2]
cmp eax, 0x100
jl 0x52cff0
xor esi, esi
xor edx, edx
nop dword [eax]
mov eax, dword [ebp + edx - 0x804]
mov ecx, dword [ebp + edx - 0x404]
add eax, ecx
add esi, eax
and esi, 0x800000ff
jns 0x52d0a2
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [ebp + esi*4 - 0x404]
mov dword [ebp + edx - 0x404], eax
add edx, 4
mov dword [ebp + esi*4 - 0x404], ecx
cmp edx, 0x400
jl 0x52d080
xor esi, esi
xor edi, edi
xor edx, edx
test ebx, ebx
je 0x52d15b
inc esi
and esi, 0x800000ff
jns 0x52d0e1
dec esi
or esi, 0xffffff00
inc esi
mov ebx, dword [ebp + esi*4 - 0x404]
add edi, ebx
and edi, 0x800000ff
jns 0x52d0fa
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [ebp + edi*4 - 0x404]
mov dword [ebp + esi*4 - 0x404], eax
mov eax, dword [ebp - 0x808]
mov dword [ebp + edi*4 - 0x404], ebx
mov al, byte [edx + eax]
test al, al
je 0x52d145
mov ecx, dword [ebp + esi*4 - 0x404]
add ecx, ebx
and ecx, 0x800000ff
jns 0x52d135
dec ecx
or ecx, 0xffffff00
inc ecx
mov ebx, dword [ebp + ecx*4 - 0x404]
movzx ecx, al
cmp ebx, ecx
je 0x52d145
xor al, bl
mov ecx, dword [ebp - 0x80c]
mov byte [ecx + edx], al
inc edx
cmp edx, dword [ebp - 0x810]
jb 0x52d0d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e5b3
mov esp, ebp
pop ebp
ret
Function at 0x5384a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5b16
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x63a404]
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 eax, ecx
mov dword [ebp - 0x220], eax
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0x224], ecx
test eax, eax
je 0x538537
push eax
lea ecx, [ebp - 0x22c]
call fcn.005448d0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x224], 1
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
cmp edi, 0xffffffff
je 0x538532
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 0x219], 1
jmp 0x53853e
mov ecx, 1
mov byte [ebp - 0x219], 0
mov dword [ebp - 4], 0xffffffff
test cl, 1
je 0x53855f
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x53855f
push 2
push eax
call fcn.0056ea89
add esp, 8
cmp byte [ebp - 0x219], 0
je 0x5386c4
push 0x104
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00573560
mov ecx, dword [ebp - 0x220]
add esp, 0xc
test ecx, ecx
je 0x5386c4
call fcn.00545f90
mov edi, eax
test edi, edi
je 0x5386c4
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x5385e5
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00544840
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 2
push edi
call fcn.0056ea89
add esp, 8
test esi, esi
je 0x5386c4
mov ecx, esi
call fcn.00545ff0
mov edi, eax
test edi, edi
je 0x53869b
push 8
call fcn.0056e7bf
mov ebx, eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], 2
push 8
mov dword [ebx], 0
call fcn.0056e7bf
xorps xmm0, xmm0
push edi
movq qword [eax], xmm0
mov dword [ebx + 4], eax
call fcn.004020a0
add esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x538690
push dword [ebx + 4]
push eax
call fcn.00402180
add esp, 8
test eax, eax
je 0x538690
mov eax, dword [ebx]
test eax, eax
je 0x538664
push eax
call fcn.004020e0
add esp, 4
mov eax, dword [ebx + 4]
mov dword [ebx], 0
test eax, eax
je 0x538683
push 0
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx + 4], 0
push 8
push ebx
call fcn.0056ea89
add esp, 8
xor ebx, ebx
push 1
push edi
call fcn.0056ea89
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x5386b2
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, ebx
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.0056e5b3
mov esp, ebp
pop ebp
ret
Function at 0x5390e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x539171
push esi
push edi
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
cmp edi, 0xffffffff
je 0x539130
mov ecx, ebx
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x539130
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056ea89
add esp, 8
push 4
call fcn.0056e7bf
add esp, 4
mov esi, eax
mov ecx, ebx
mov dword [ebp - 4], esi
push 0
call fcn.00545ff0
push eax
call fcn.004054c0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x539168
push ecx
mov ecx, esi
call fcn.00515080
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x539210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x63a404]
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 dword [ebp - 0x44], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
mov dword [ebp - 0x38], eax
call fcn.005448d0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
cmp edi, 0xffffffff
setne bl
test eax, eax
je 0x539291
push 2
push eax
call fcn.0056ea89
add esp, 8
test bl, bl
je 0x5393db
mov edi, dword [ebp - 0x38]
mov ecx, edi
call fcn.00548520
mov ecx, edi
mov esi, eax
call fcn.00545ff0
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x5392c4
mov ecx, esi
call fcn.00545ff0
mov esi, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
jmp 0x5392c9
xor esi, esi
mov dword [ebp - 0x38], esi
test eax, eax
je 0x5393cc
test esi, esi
je 0x5393c1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push ecx
push ecx
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00539180
push 0xffffffffffffffff
push 8
push 0x60fec4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x44]
push esi
push dword [eax]
call fcn.004066b0
add esp, 0x28
test eax, eax
jne 0x5393bc
mov ecx, edi
call fcn.005475d0
mov edi, eax
test edi, edi
je 0x5393bc
push 0x4000
call fcn.005765e5
mov esi, eax
add esp, 4
test esi, esi
je 0x539396
nop word [eax + eax]
mov edx, dword [edi]
mov ecx, edi
push 0x4000
push esi
call dword [edx + 0x14]
test eax, eax
je 0x539398
push eax
mov eax, dword [ebp - 0x44]
push esi
push dword [eax]
call fcn.00406700
add esp, 0xc
test eax, eax
je 0x539370
jmp 0x539398
xor bl, bl
mov eax, dword [ebp - 0x44]
push dword [eax]
call fcn.00407170
xor ecx, ecx
movzx ebx, bl
add esp, 4
test eax, eax
mov eax, dword [edi]
cmovne ebx, ecx
mov ecx, edi
push 1
call dword [eax]
mov esi, dword [ebp - 0x38]
jmp 0x5393be
xor bl, bl
mov eax, dword [ebp - 0x3c]
push 1
push eax
call fcn.0056ea89
add esp, 8
test esi, esi
je 0x5393db
push 1
push esi
call fcn.0056ea89
add esp, 8
mov al, bl
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.0056e5b3
mov esp, ebp
pop ebp
ret 4

Function at 0x5476f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 8]
mov byte [ebp - 1], 0
push eax
mov esi, ecx
mov dword [ebp - 8], 0
push 1
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 8]
add dword [esi + 8], eax
mov al, byte [ebp - 1]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x547730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov dword [ebp - 4], 0
push 2
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov ax, word [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x547770
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
mov esi, ecx
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5477b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
push 8
push eax
xorps xmm0, xmm0
push dword [esi + 4]
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5477f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x54782a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54782a
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x547910
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor bl, bl
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x547a58
mov edx, dword [ecx + 4]
cmp edx, 1
jbe 0x547a58
push esi
mov esi, dword [ecx]
cmp word [esi + 2], 0x3a
jne 0x547a50
cmp edx, 2
jbe 0x547a50
cmp word [esi + 4], 0x5c
jne 0x547a50
mov edx, 3
push edi
mov dword [ebp - 8], edx
nop dword [eax + eax]
xor edi, edi
or esi, 0xffffffff
test edx, edx
mov eax, edx
mov edx, dword [ecx]
cmovs eax, edi
test edx, edx
je 0x547a20
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x547a20
cmp eax, ebx
jae 0x547a20
lea edx, [edx + eax*2]
nop dword [eax]
mov edi, eax
cmp esi, 0xffffffff
jne 0x5479af
movzx ecx, word [edx]
inc eax
add edx, 2
mov esi, edi
cmp ecx, 0x5c
mov ecx, 0xffffffff
cmovne esi, ecx
cmp eax, ebx
jb 0x547990
mov ecx, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x547a20
push esi
push 0
call fcn.00545be0
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ebp - 8]
test edi, edi
je 0x547960
mov ecx, edi
call fcn.00545f90
mov ebx, eax
test ebx, ebx
je 0x5479ec
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push ebx
call fcn.0056ea89
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x547a03
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
mov ecx, dword [ebp - 4]
lea edx, [esi + 1]
add esp, 8
jmp 0x547958
mov eax, dword [ebp - 8]
pop edi
cmp eax, dword [ecx + 4]
jge 0x547a48
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x547a48
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push esi
call fcn.0056ea89
add esp, 8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x547a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6c98
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x63a404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [ebp - 0xd], 0
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov ebx, eax
call fcn.0056ea89
add esp, 8
cmp ebx, 0xffffffff
jne 0x547b4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x547ac4
cmp esi, 3
jbe 0x547b39
push 0x98
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x4b
call fcn.0056ea97
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.DoesFolderExist_INVALID_FILE_ATTRIBUTES_and_GetLastError_returned__I_for__s
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00584f75
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
push edi
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edx
push eax
push 0x5c
push str.OFileManager::doesFolderExist
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofilemanager.cpp
push edx
call fcn.0054faa0
mov eax, dword [ebp - 0x1c]
add esp, 0x34
test eax, eax
je 0x547b39
push 2
push eax
call fcn.0056ea89
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0xd]
test bl, 0x10
mov ecx, 1
cmovne eax, ecx
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 0x547b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
call fcn.00545f90
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056ea89
add esp, 8
cmp edi, 0xffffffff
setne al
pop edi
pop esi
ret
Function at 0x5481d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6e9a
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x63a404]
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
test ecx, ecx
je 0x5483f3
call fcn.00544c60
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x5483f5
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x54825e
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00544840
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x420]
xor edi, edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x5482a4
push 8
call fcn.0056e7bf
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0x1b
push ecx
mov ecx, eax
call fcn.00544840
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0x14
mov dword [ebp - 0x430], 0
mov esi, 9
call fcn.0056ea97
add esp, 4
mov dword [ebp - 0x428], eax
push 0xffffffffffffffff
push str._DESKTOP_
push 0xa
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00584f75
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x424], esi
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 4], 0x20
call fcn.00546410
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x54831f
push 2
push eax
call fcn.0056ea89
add esp, 8
push 0xe
mov dword [ebp - 0x424], 0
mov esi, 6
call fcn.0056ea97
add esp, 4
mov dword [ebp - 0x434], eax
push 0xffffffffffffffff
push str._TEMP_
push 7
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00584f75
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x430], esi
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x434]
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], 0x21
call fcn.00546410
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x548395
push 2
push eax
call fcn.0056ea89
add esp, 8
test ebx, ebx
je 0x5483c2
mov eax, dword [ebx]
test eax, eax
je 0x5483b0
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056ea89
add esp, 8
test edi, edi
je 0x5483ef
mov eax, dword [edi]
test eax, eax
je 0x5483dd
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056ea89
add esp, 8
mov eax, esi
jmp 0x5483f5
xor eax, eax
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.0056e5b3
mov esp, ebp
pop ebp
ret

Function at 0x5485b0
Capabilities:
Delete file

Disassembly:
push ebx
xor bl, bl
test ecx, ecx
je 0x5485dc
push esi
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x5485d7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
mov bl, al
call fcn.0056ea89
add esp, 8
pop esi
mov al, bl
pop ebx
ret
mov al, bl
pop ebx
ret