joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471b65
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00471ae1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x471cdd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x471cdd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x471c8c
jg 0x471bbe
test eax, eax
je 0x471c82
push 1
push 0x1000
call fcn.0046fe0a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x471be4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x471c79
push 0x8000
push ebx
call fcn.0046bbdd
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x471c10
jg 0x471c0b
cmp ecx, 0x1000
jb 0x471c10
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0046d8db
add esp, 0x10
cmp eax, 0xffffffff
je 0x471c55
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x471c0b
jl 0x471c3c
test ecx, ecx
jne 0x471bfd
push dword [ebp - 0xc]
push ebx
call fcn.0046bbdd
push esi
call fcn.0046f698
add esp, 0xc
xor edi, edi
jmp 0x471cee
cmp byte [edi + 0x24], 0
je 0x471c6c
cmp dword [edi + 0x20], 5
jne 0x471c6c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x471c77
mov edi, dword [edi + 0x18]
jmp 0x471c79
xor edi, edi
push esi
call fcn.0046f698
pop ecx
jmp 0x471cee
test ecx, ecx
jg 0x471c4e
jl 0x471c8c
test eax, eax
jae 0x471c4e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046a5b7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x471caf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x471c4e
jmp 0x471ce6
push ebx
call fcn.00471a77
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x471c4e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x471cee
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x471ceb
mov edi, dword [edi + 0x18]
jmp 0x471cee
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0046a5b7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x474799
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x474836
push ebx
push esi
call fcn.00474762
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004723ed
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4747e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x474835
push edi
push eax
call fcn.0046fdbc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x474803
call fcn.0046f698
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x474834
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004723ed
add esp, 0x20
test eax, eax
jne 0x474822
push edi
call fcn.0046f698
jmp 0x47482a
push ebx
call fcn.0046f698
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x474839
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47484a
pop esi
ret
push ebx
push edi
push esi
call fcn.00474762
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046fdbc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x474872
push ebx
push esi
push edi
call fcn.0045c400
add esp, 0xc
push 0
call fcn.0046f698
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x474c36
Capabilities:
Set environment variable

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

Function at 0x47ac00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47ac2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47ac2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1e7a1345
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1e7a1380

Function at 0x1e7a21d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ebp, 0xfffffdd1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.1e7a12e3
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
invalid
invalid
xchg esi, eax
cld
Function at 0x1e7a3370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.1e7a1315
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.1e7a1315
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.1e7a1276
add esp, 0xc
lea eax, [ebp - 0x504]
mov dword [ebp - 0x3a0], eax
jmp 0x1e7a327d
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.1e7a1305
mov esi, dword [ebp - 0x3f]
pop ebp
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1e7a32e8
lea eax, [ebp - 0x714]
push eax
call fcn.1e7a1315
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.1e7a12ca
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x1e7a32e8
jmp 0x1e7a2ca7
cmp dword [ebp - 0x37c], 0
je 0x1e7a32f6
jmp 0x1e7a33ab
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x1e7a334f
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x1e7a3354
jmp 0x1e7a2ca7
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x1e7a339b
lea eax, [ebp - 0x714]
push eax
call fcn.1e7a1315
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.1e7a12ca
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x1e7a33a6
jmp 0x1e7a33ab
jmp 0x1e7a2ca7
cmp dword [ebp - 0x37c], 0
jne 0x1e7a3455
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1e7a14e1
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x1e7a3441
lea eax, [ebp - 0x714]
push eax
call fcn.1e7a1315
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.1e7a13aa
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0xe2400
push 0
call sub.kernel32.dll_GetCommandLineA
call sub.kernel32.dll_VirtualAlloc
call fcn.004ab87e
ret
Function at 0x4080ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4231a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x423b78]
mov esi, dword [ebp + 8]
call fcn.00408082
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00403787
add esp, 0x10
xor esi, esi
call fcn.00408068
movzx ecx, byte [ebp + esi - 0x10]
xor eax, ecx
mov byte [ebp + esi - 0x10], al
movzx eax, al
push eax
call fcn.00408142
inc esi
pop ecx
cmp esi, 0xc
jl 0x4080ea
cmp dword [0x423b74], 0
movzx ecx, byte [ebp - 5]
pop esi
je 0x408129
movzx eax, byte [0x426c67]
cmp cx, ax
je 0x408132
or eax, 0xffffffff
jmp 0x408134
movzx eax, byte [0x426c6d]
jmp 0x40811f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408980
mov esp, ebp
pop ebp
ret

Function at 0x408142
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x426350]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4263a0]
movzx eax, cl
add eax, dword [0x426354]
imul eax, eax, 0x8088405
mov dword [0x426350], ecx
mov ecx, dword [0x426358]
inc eax
mov dword [0x426354], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4263a0]
mov dword [0x426358], ecx
ret

Function at 0x7ffe5445
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
cld
pushal
inc eax
popal
clc
lea esp, [esp]
clc
and bh, 0xff
nop
and bh, 0xff
nop
pushal
inc eax
popal
cld
push edx
cdq
pop edx
nop
push edx
cdq
pop edx
stc
clc
cld
cld
call 0x7ffe5470
pop edx
cld
add eax, 0
nop
xor dx, dx
add edx, 0xd5e0
add eax, 0
nop
cld
xor ecx, ecx
mov cl, 0x1e
cld
add eax, 0
nop
xor byte [ecx + edx], 0x1e
loop 0x7ffe548d
cld
stc
push dword fs:[0x24]
clc
pop dword [edx + 0xa]
stc
cld
mov cl, 0xff
cld
and bh, 0xff
cld
push edx
loop 0x7ffe54a9
mov dword [edx + 0x11], 0xffffacbb
stc
cld
nop
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
cld
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
and al, 0xff
stc
push 0
push 0
nop
push 0
push 0
nop
push 0x30
nop
cld
push 0x20
cld
stc
clc
push 0
stc
clc
push 0
and al, 0xff
stc
add edx, 0xffff7f37
nop
cld
cld
nop
push edx
cld
clc
cld
push edx
push 0
lea esp, [esp]
cld
cld
call dword [edx + 0x820c]
add esp, 0x3f8
and bh, 0xff
xor eax, eax
inc eax
pushal
inc eax
popal
ret 0xc

Function at 0x10a2912c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10a29136
pushal
call 0x10a2913c
pop ebp
sub ebp, 0x10
sub ebp, 0xa2912c
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10a29160
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10a29169
mov eax, 0xa2912c
add eax, ebp
add eax, 0x63
mov ecx, 0x5c4
mov edx, 0x141b3bdb
xor byte [eax], dl
inc eax
dec ecx
jne 0x10a29180
jmp 0x10a29193
push eax
push ss
push eax
push edx
out 0xdb, eax
fcmovnu st(0), st(3)
pop edx
sbb ah, byte [ebx]
fcmovnu st(0), st(3)
fcmovnu st(0), st(0)
push ss
arpl bp, bx
fcmovnu st(0), st(3)
invalid
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x117e72ba
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x26bd334d
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x6aa3c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65b015
lea edi, [esi - 0x25a015]
push edi
or ebp, 0xffffffff
jmp 0x6aa3e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6aa3e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa3d8
mov eax, 1
add ebx, ebx
jne 0x6aa3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6aa40c
jne 0x6aa42b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa42b
dec eax
add ebx, ebx
jne 0x6aa418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6aa3f0
add ebx, ebx
jne 0x6aa427
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6aa47d
xor ecx, ecx
sub eax, 3
jb 0x6aa443
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6aa4b2
sar eax, 1
mov ebp, eax
jmp 0x6aa44e
add ebx, ebx
jne 0x6aa44e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa41c
inc ecx
add ebx, ebx
jne 0x6aa45c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6aa41c
add ebx, ebx
jne 0x6aa469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6aa45e
jne 0x6aa47a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6aa45e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6aa49c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6aa48e
jmp 0x6aa3de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6aa49c
add edi, ecx
jmp 0x6aa3de
pop esi
mov edi, esi
mov ecx, 0xaec0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6aa4ba
cmp byte [edi], 0xe
jne 0x6aa4ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6aa4bf
lea edi, [esi + 0x2a8000]
mov eax, dword [edi]
or eax, eax
je 0x6aa537
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2aa534]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2aa570]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6aa4ec
mov ecx, edi
jns 0x6aa51b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2aa578]
or eax, eax
je 0x6aa531
mov dword [ebx], eax
add ebx, 4
jmp 0x6aa509
call dword [esi + 0x2aa574]
mov ebp, dword [esi + 0x2aa57c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6aa56b
sub esp, 0xffffff80
jmp 0x402ba0
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x4031f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
lea edx, [ebp - 0x20c]
push edx
call fcn.004344c0
lea eax, [ebp - 0x20c]
add esp, 0x10
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403236
mov ecx, dword [0x4c6ba8]
mov edx, dword [0x4c6bac]
mov dword [eax], ecx
mov ecx, dword [0x4c6bb0]
mov dword [eax + 4], edx
mov edx, dword [0x4c6bb4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4c6bb8]
mov dword [eax + 0xc], edx
mov dx, word [0x4c6bbc]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x406c10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
push 0x206
mov dword [ebp - 0x460], ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
push 0x104
lea edx, [ebp - 0x20c]
push ebx
push edx
call dword [sym.imp.MSVCR100.dll_wcsncpy]
lea eax, [ebp - 0x20c]
add esp, 0x18
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406c70
sub eax, edx
sar eax, 1
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [ebp - 0x20c]
push 0x4c7784
push edx
call dword [sym.imp.MSVCR100.dll_wcsncat]
push 0x250
lea eax, [ebp - 0x45c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x20c]
push edx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406d0b
lea esp, [esp]
test byte [ebp - 0x45c], 0x10
jne 0x406cee
mov ecx, dword [ebp - 0x460]
lea eax, [ebp - 0x430]
push eax
push ebx
call fcn.00406940
mov esi, eax
test esi, esi
js 0x406d04
lea ecx, [ebp - 0x45c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406cd0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 4
Function at 0x407440
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x407459
pop edi
pop esi
pop ebp
ret
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call fcn.004073c0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x408010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, 2
cmp dword [ebp - 0x108], eax
jne 0x40806b
cmp dword [ebp - 0x114], 6
jne 0x40806b
cmp dword [ebp - 0x110], eax
jne 0x40806b
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004b12f6
mov esp, ebp
pop ebp
ret

Function at 0x4082b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2ad9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5603e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x10]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ksolite.dll_bool___cdecl_krt::product::isSupported_class_QString_const__]
add esp, 4
lea ecx, [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
test bl, bl
je 0x4083ab
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
mov edi, ecx
push edi
call fcn.004b0bb6
mov esi, eax
add esp, 4
test esi, esi
je 0x408346
push edi
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x408348
xor esi, esi
push 0xa
push 0xffffffffffffffff
xor ecx, ecx
push ebx
push esi
lea edx, [ecx + 0x1a]
call fcn.004070b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40837d
push edi
push str.GetWinSpecialFoldersFromReg_Failed:_0x_08x.
push str._GetCurrentAppData
push 0x3f
push str.D:_rc_v11_personal_20200207_branchCoding_supportksomiscKFastLink.cpp
push 0
call fcn.00487a00
add esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor eax, eax
add esp, 0x10
test edi, edi
sete 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
mov ecx, dword [ebp + 8]
push 0
push 0x1a
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
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 0x40ba60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
cmp dword [esi + 0x54], edi
jne 0x40bb18
cmp dword [esi + 0x50], edi
jne 0x40bb18
cmp dword [esi + 0x58], edi
jne 0x40bb18
push ebx
call fcn.00488c20
push eax
lea ecx, [ebp - 0x20]
call fcn.00405cd0
cmp dword [ebp - 0x10], 0
lea ebx, [edi + 9]
je 0x40bb06
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x40bab5
lea eax, [ebp - 0x20]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push str.DesktopLinkSet
push str.installinfo
call edi
mov dword [esi + 0x54], eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x40bad7
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push str.StartMenuLinkSet
push str.installinfo
call edi
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x40baf4
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
push str.MetroUILinkSet
push str.installinfo
call edi
mov dword [esi + 0x58], eax
cmp dword [ebp - 0xc], ebx
pop ebx
jb 0x40bb18
mov eax, dword [ebp - 0x20]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
jne 0x40bb40
mov ecx, dword [ebp + 8]
mov eax, 1
shl eax, cl
pop edi
and eax, dword [esi + 0x54]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 8
cmp ecx, 1
jne 0x40bb4a
mov eax, dword [esi + 0x50]
jmp 0x40bb52
cmp ecx, 2
jne 0x40bb5e
mov eax, dword [esi + 0x58]
mov ecx, dword [ebp + 8]
mov edx, 1
shl edx, cl
and eax, edx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b12f6
mov esp, ebp
pop ebp
ret 8