joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526480
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4e07
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [ebp - 0x18], eax
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5264c0
sub esi, ecx
sar esi, 1
je 0x526695
push 0x6251c4
push edi
call fcn.005746ab
push 9
push str.CERTKEY_M
push edi
lea ebx, [eax + 2]
call fcn.0057ef80
add esp, 0x14
test eax, eax
jne 0x526618
lea ebx, [edi + 0x10]
test ebx, ebx
je 0x52666f
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x24], eax
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00545630
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x52666f
mov edi, dword [ebx]
or ecx, 0xffffffff
test edi, edi
je 0x5265ea
cmp dword [ebx + 4], 0
jbe 0x5265ea
xor edx, edx
nop dword [eax]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
cmp ecx, 0xffffffff
jne 0x526571
movzx eax, word [edi]
inc edx
mov ecx, dword [ebp - 0x14]
add edi, 2
cmp eax, 0x3d
cmovne ecx, dword [ebp - 0x1c]
cmp edx, dword [ebx + 4]
jb 0x526550
test ecx, ecx
jle 0x5265ea
push ecx
push 0
mov ecx, ebx
call fcn.005469d0
mov ecx, dword [ebp - 0x10]
mov edx, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x28]
mov edi, dword [ecx + 0x24]
mov dword [ebp - 0x14], eax
inc eax
mov dword [ecx + 0x28], eax
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f8a6
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x24], edx
test edi, edi
je 0x5265cf
mov eax, dword [ebp - 0x14]
lea ecx, [eax*4]
push ecx
push edi
push edx
call fcn.00573870
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax + ecx*4], edx
test edi, edi
je 0x5265ea
push 4
push edi
call fcn.0056f898
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x526601
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
mov edi, dword [ebp - 0x18]
add esp, 8
jmp 0x52666f
push 6
push str.CERTID
push edi
call fcn.0057ef80
add esp, 0xc
test eax, eax
jne 0x52666f
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00545630
mov ecx, dword [ebp - 0x10]
push eax
mov dword [ebp - 4], 1
lea ecx, [ecx + 0x1c]
call fcn.00546210
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x526668
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea edi, [edi + esi*2]
add edi, 2
mov esi, edi
mov dword [ebp - 0x18], edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x526680
sub esi, ecx
sar esi, 1
jne 0x5264d5
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
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 0x528090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5124
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.iWinDrm.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x28]
push 0x644ef8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.005456c0
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 4
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov byte [esi + 0x30], 0
mov dword [esi + 0x1c], ecx
mov eax, dword [ecx]
call dword [eax]
push eax
lea ecx, [esi + 4]
call fcn.00546210
mov edx, dword [esi + 4]
test edx, edx
je 0x5281ac
mov eax, dword [esi + 8]
test eax, eax
je 0x5281ac
lea eax, [edx + eax*2]
cmp eax, edx
jb 0x5281ac
nop
cmp word [eax], 0x5c
je 0x52815d
sub eax, 2
cmp eax, edx
jae 0x528150
cmp eax, edx
jb 0x5281ac
sub eax, edx
sar eax, 1
test eax, eax
jle 0x5281ac
push eax
push 0
lea ecx, [esi + 4]
call fcn.005469d0
mov edi, eax
test edi, edi
je 0x5281ac
push edi
lea ecx, [esi + 0xc]
call fcn.00546210
mov eax, dword [edi]
test eax, eax
je 0x52819a
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
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 4
Function at 0x52a5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x52a61b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052ae70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x52a63d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x52a63f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x52a6c3
jg 0x52a654
test esi, esi
je 0x52a6c3
test ecx, ecx
jl 0x52a69d
jg 0x52a65e
test eax, eax
je 0x52a69d
cmp edi, ecx
jg 0x52a672
jl 0x52a668
cmp esi, eax
jae 0x52a672
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00573870
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x52a6a0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x52a6c3
jg 0x52a6aa
test esi, esi
je 0x52a6c3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x52a6c3
push eax
push esi
push 1
push edx
call fcn.0057ec89
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x52a6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x52a70b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0052af50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x52a72d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x52a72f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x52a7ce
jg 0x52a74c
test esi, esi
je 0x52a7ce
test ecx, ecx
jl 0x52a799
jg 0x52a756
test eax, eax
je 0x52a799
cmp ebx, ecx
jg 0x52a76a
jl 0x52a760
cmp esi, eax
jae 0x52a76a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00573870
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x52a7a0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x52a7ce
jg 0x52a7aa
test esi, esi
je 0x52a7ce
cmp dword [edi + 0x4c], 0
je 0x52a7ce
mov ecx, edi
call fcn.0052b600
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0057fbdd
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x52ab00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x52ab30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x52ab6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x52ab6c
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.0056f3c2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x52ac53
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x52ab94
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 0x52abc7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0057efe3
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.0056f3c2
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 0x52ac53
cmp eax, 1
jle 0x52ac26
cmp eax, 3
jne 0x52ac53
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0057efe3
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.0056f3c2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x52ac43
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057ec89
add esp, 0x10
cmp edi, eax
jne 0x52ac53
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x52ab57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret 4
Function at 0x52b630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x52b6d1
cmp byte [esi + 0x3d], 0
je 0x52b6d1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x52b687
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 0x52b699
sub eax, 1
je 0x52b69d
sub eax, 2
je 0x52b6d1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x52b6ba
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0057ec89
add esp, 0x10
cmp edi, eax
jne 0x52b687
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret

Function at 0x52b990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b54a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x63b404]
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.0056f5ce
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00571946
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 0x52dda0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x63b404]
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 0x52dde0
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 0x52de92
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 0x52de70
xor esi, esi
xor edi, edi
xor edx, edx
test ebx, ebx
je 0x52df4b
inc esi
and esi, 0x800000ff
jns 0x52ded1
dec esi
or esi, 0xffffff00
inc esi
mov ebx, dword [ebp + esi*4 - 0x404]
add edi, ebx
and edi, 0x800000ff
jns 0x52deea
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 0x52df35
mov ecx, dword [ebp + esi*4 - 0x404]
add ecx, ebx
and ecx, 0x800000ff
jns 0x52df25
dec ecx
or ecx, 0xffffff00
inc ecx
mov ebx, dword [ebp + ecx*4 - 0x404]
movzx ecx, al
cmp ebx, ecx
je 0x52df35
xor al, bl
mov ecx, dword [ebp - 0x80c]
mov byte [ecx + edx], al
inc edx
cmp edx, dword [ebp - 0x810]
jb 0x52dec0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
Function at 0x539290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6936
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x63b404]
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 0x539327
push eax
lea ecx, [ebp - 0x22c]
call fcn.005456c0
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x224], 1
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
cmp edi, 0xffffffff
je 0x539322
mov ecx, dword [ebp - 0x224]
mov byte [ebp - 0x219], 1
jmp 0x53932e
mov ecx, 1
mov byte [ebp - 0x219], 0
mov dword [ebp - 4], 0xffffffff
test cl, 1
je 0x53934f
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x53934f
push 2
push eax
call fcn.0056f898
add esp, 8
cmp byte [ebp - 0x219], 0
je 0x5394b4
push 0x104
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00574370
mov ecx, dword [ebp - 0x220]
add esp, 0xc
test ecx, ecx
je 0x5394b4
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x5394b4
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x5393d5
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00545630
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push 2
push edi
call fcn.0056f898
add esp, 8
test esi, esi
je 0x5394b4
mov ecx, esi
call fcn.00546de0
mov edi, eax
test edi, edi
je 0x53948b
push 8
call fcn.0056f5ce
mov ebx, eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], 2
push 8
mov dword [ebx], 0
call fcn.0056f5ce
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 0x539480
push dword [ebx + 4]
push eax
call fcn.00402180
add esp, 8
test eax, eax
je 0x539480
mov eax, dword [ebx]
test eax, eax
je 0x539454
push eax
call fcn.004020e0
add esp, 4
mov eax, dword [ebx + 4]
mov dword [ebx], 0
test eax, eax
je 0x539473
push 0
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx + 4], 0
push 8
push ebx
call fcn.0056f898
add esp, 8
xor ebx, ebx
push 1
push edi
call fcn.0056f898
add esp, 8
mov eax, dword [esi]
test eax, eax
je 0x5394a2
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
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.0056f3c2
mov esp, ebp
pop ebp
ret
Function at 0x539ed0
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 0x539f61
push esi
push edi
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
cmp edi, 0xffffffff
je 0x539f20
mov ecx, ebx
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x539f20
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
call fcn.0056f898
add esp, 8
push 4
call fcn.0056f5ce
add esp, 4
mov esi, eax
mov ecx, ebx
mov dword [ebp - 4], esi
push 0
call fcn.00546de0
push eax
call fcn.004054c0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x539f58
push ecx
mov ecx, esi
call fcn.00515e80
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 0x53a000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6a18
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x63b404]
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.005456c0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
cmp edi, 0xffffffff
setne bl
test eax, eax
je 0x53a081
push 2
push eax
call fcn.0056f898
add esp, 8
test bl, bl
je 0x53a1cb
mov edi, dword [ebp - 0x38]
mov ecx, edi
call fcn.00549310
mov ecx, edi
mov esi, eax
call fcn.00546de0
mov dword [ebp - 0x3c], eax
test esi, esi
je 0x53a0b4
mov ecx, esi
call fcn.00546de0
mov esi, eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
jmp 0x53a0b9
xor esi, esi
mov dword [ebp - 0x38], esi
test eax, eax
je 0x53a1bc
test esi, esi
je 0x53a1b1
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.00539f70
push 0xffffffffffffffff
push 8
push 0x610f54
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 0x53a1ac
mov ecx, edi
call fcn.005483c0
mov edi, eax
test edi, edi
je 0x53a1ac
push 0x4000
call fcn.005773f5
mov esi, eax
add esp, 4
test esi, esi
je 0x53a186
nop word [eax + eax]
mov edx, dword [edi]
mov ecx, edi
push 0x4000
push esi
call dword [edx + 0x14]
test eax, eax
je 0x53a188
push eax
mov eax, dword [ebp - 0x44]
push esi
push dword [eax]
call fcn.00406700
add esp, 0xc
test eax, eax
je 0x53a160
jmp 0x53a188
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 0x53a1ae
xor bl, bl
mov eax, dword [ebp - 0x3c]
push 1
push eax
call fcn.0056f898
add esp, 8
test esi, esi
je 0x53a1cb
push 1
push esi
call fcn.0056f898
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.0056f3c2
mov esp, ebp
pop ebp
ret 4

Function at 0x5484e0
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 0x548520
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 0x548560
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 0x5485a0
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 0x5485e0
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 0x54861a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54861a
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