joyce8/EMBER2024-capa huggingface dataset:
Function at 0x891f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x456000]
push edi
jmp 0x891f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x891f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x891f50
mov eax, 1
add ebx, ebx
jne 0x891f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x891f84
jne 0x891fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x891fa3
dec eax
add ebx, ebx
jne 0x891f90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x891f68
add ebx, ebx
jne 0x891f9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x891ff5
xor ecx, ecx
sub eax, 3
jb 0x891fbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x89202a
sar eax, 1
mov ebp, eax
jmp 0x891fc6
add ebx, ebx
jne 0x891fc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x891f94
inc ecx
add ebx, ebx
jne 0x891fd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x891f94
add ebx, ebx
jne 0x891fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x891fd6
jne 0x891ff2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x891fd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x892014
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x892006
jmp 0x891f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x892014
add edi, ecx
jmp 0x891f56
pop esi
mov edi, esi
mov ecx, 0x2754
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x892032
cmp byte [edi], 0x16
jne 0x892032
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 0x892037
lea edi, [esi + 0x48d000]
mov eax, dword [edi]
or eax, eax
je 0x8920af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89e108]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x89e208]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x892064
mov ecx, edi
jns 0x892093
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 + 0x89e210]
or eax, eax
je 0x8920a9
mov dword [ebx], eax
add ebx, 4
jmp 0x892081
call dword [esi + str.324T]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8920e0
cmp al, 0xef
ja 0x8920d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8920b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8920c2
mov ebp, dword [esi + 0x89e214]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x892114
sub esp, 0xffffff80
jmp 0x4302f3
Function at 0x68dd70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b2000]
push edi
or ebp, 0xffffffff
jmp 0x68dd92
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x68dd99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68dd88
mov eax, 1
add ebx, ebx
jne 0x68ddab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68ddbc
jne 0x68dddb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68dddb
dec eax
add ebx, ebx
jne 0x68ddc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x68dda0
add ebx, ebx
jne 0x68ddd7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x68de2d
xor ecx, ecx
sub eax, 3
jb 0x68ddf3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68de62
sar eax, 1
mov ebp, eax
jmp 0x68ddfe
add ebx, ebx
jne 0x68ddfe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ddcc
inc ecx
add ebx, ebx
jne 0x68de0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68ddcc
add ebx, ebx
jne 0x68de19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68de0e
jne 0x68de2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68de0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68de4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68de3e
jmp 0x68dd8e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68de4c
add edi, ecx
jmp 0x68dd8e
pop esi
mov edi, esi
mov ecx, 0xc5b0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68de6a
cmp byte [edi], 0x36
jne 0x68de6a
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 0x68de6f
lea edi, [esi + 0x278000]
mov eax, dword [edi]
or eax, eax
je 0x68dee7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a09d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a0ba4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68de9c
mov ecx, edi
jns 0x68decb
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 + 0x2a0ba8]
or eax, eax
je 0x68dee1
mov dword [ebx], eax
add ebx, 4
jmp 0x68deb9
call dword [esi + 0x2a0bb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x68df18
cmp al, 0xef
ja 0x68df0b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x68deed
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x68defa
mov ebp, dword [esi + 0x2a0bac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x68df4c
sub esp, 0xffffff80
jmp 0x57a9ec
Function at 0x401ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bb80
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x45604c]
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 - 0x140], ecx
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], esi
cmp dword [ebx + 4], esi
jbe 0x401f61
nop
mov eax, edi
lea esi, [ebp - 0x138]
and eax, 1
mov ecx, ebx
lea esi, [esi + eax*2]
call fcn.00402400
movzx eax, word [eax + edi*2]
push eax
call fcn.0042a9d8
xor word [esi], ax
inc edi
add esp, 4
cmp edi, dword [ebx + 4]
jb 0x401f30
mov esi, dword [ebp - 0x138]
mov eax, 4
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
mov word [ebp - 0x1a], ax
lea ecx, [ebp - 0x12c]
lea eax, [ebp - 0x128]
mov byte [ebp - 0x18], 1
push 1
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
push str.Local_
lea eax, [ebp - 0x134]
mov dword [ebp - 4], ecx
push 0x44eac8
push eax
call fcn.00406410
push str.mutex_file_
lea eax, [ebp - 0x134]
push 0x44eac8
push eax
call fcn.00406410
push esi
lea eax, [ebp - 0x134]
push str.0x_p
push eax
call fcn.00406410
mov esi, dword [ebp - 0x13c]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x140]
add esp, 0x24
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push esi
call fcn.00408cc0
test al, al
jne 0x402042
push 0x44a728
mov ecx, esi
call fcn.00401e30
xor bl, bl
jmp 0x402044
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40206d
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x40206d
push eax
call fcn.00429cf7
add esp, 4
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.00422285
mov esp, ebp
pop ebp
ret 8
Function at 0x4025c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov cl, byte [edi + 0x11c]
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025e7
mov eax, dword [edi + 8]
cmp word [eax + 6], 0x3a
jne 0x40267f
lea eax, [edi + 0xc]
test cl, cl
jne 0x4025fc
mov eax, dword [edi + 8]
cmp word [eax + 8], 0
jne 0x40267f
push edi
lea ecx, [ebp - 0x24c]
call fcn.004060b0
push 0x44a758
lea eax, [ebp - 0x24c]
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
lea eax, [ebp - 0x240]
cmp byte [ebp - 0x130], 0
cmove eax, dword [ebp - 0x244]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402651
xor bl, bl
jmp 0x402657
shr ebx, 4
and bl, 1
cmp byte [ebp - 0x130], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x240]
jmp 0x402793
push edi
lea ecx, [ebp - 0x128]
call fcn.004060b0
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x40269b
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026ac
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x4026c4
lea ecx, [edi + 0xc]
test al, al
jne 0x4026bd
mov ecx, dword [edi + 8]
cmp word [ecx + 0xa], 0
je 0x40270c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x40270c
test al, al
lea eax, [edi + 0xc]
jne 0x4026d5
mov eax, dword [edi + 8]
cmp word [eax + ecx*2 + 2], 0x5c
jne 0x40270c
push esi
lea esi, [ecx - 1]
push ecx
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x124], esi
call fcn.00406610
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
xor ecx, ecx
mov word [eax + esi*2 + 4], cx
pop esi
cmp byte [ebp - 0xc], 0
lea eax, [ebp - 0x11c]
cmove eax, dword [ebp - 0x120]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402732
xor bl, bl
jmp 0x402777
mov al, byte [edi + 0x11c]
lea ecx, [edi + 0xc]
test al, al
jne 0x402742
mov ecx, dword [edi + 8]
cmp word [ecx + 6], 0x3a
jne 0x402771
lea ecx, [edi + 0xc]
test al, al
jne 0x402753
mov ecx, dword [edi + 8]
cmp word [ecx + 8], 0x5c
jne 0x402771
test al, al
je 0x402763
add edi, 0xc
jmp 0x402766
mov edi, dword [edi + 8]
cmp word [edi + 0xa], 0
jne 0x402771
mov bl, 1
jmp 0x402777
shr ebx, 4
and bl, 1
cmp byte [ebp - 0xc], 0
mov dword [ebp - 0x128], vtable.t_str.0
jne 0x4027a0
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x4027a0
push eax
call fcn.00429cf7
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.00422285
mov esp, ebp
pop ebp
ret
Function at 0x402870
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bc30
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x45604c]
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 esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
mov ebx, dword [ebp + 8]
jne 0x4028b2
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4028d0
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40298c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x11c], 0
mov edi, eax
lea eax, [esi + 0xc]
jne 0x4028f9
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40298c
shr eax, 4
not al
test al, 1
je 0x40298c
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x402924
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x134]
push eax
call fcn.00402110
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 0
push eax
push 0x44a76c
push edi
mov ecx, ebx
call fcn.00407350
mov ecx, eax
call fcn.00407580
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402988
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402988
push eax
call fcn.00429cf7
add esp, 4
xor al, al
jmp 0x40298e
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.00422285
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4029b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bc7b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x45604c]
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 esi, ecx
mov edi, dword [ebp + 8]
call fcn.004025c0
test al, al
je 0x4029f3
mov al, 1
jmp 0x402b88
lea ecx, [ebp - 0x134]
call fcn.00406000
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406610
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00402bb0
test al, al
je 0x402ab9
cmp dword [ebp - 0x130], 2
jb 0x402aa1
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
test bl, bl
cmove eax, ecx
movzx edx, word [eax + 6]
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 8]
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 0xa]
cmp edx, 0x3a
jne 0x402aa1
cmp word [ebp - 0x25c], 0x5c
jne 0x402aa1
test ax, ax
je 0x402ab9
push 1
push 0
push edi
lea ecx, [ebp - 0x134]
call fcn.004029b0
test al, al
je 0x402b49
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x402ac8
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402b4d
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x402ae6
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x258]
push eax
call fcn.00402110
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
push 0x44a77c
mov ecx, edi
call fcn.004073e0
mov ecx, eax
call fcn.00407580
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402b49
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x402b49
push eax
call fcn.00429cf7
add esp, 4
xor bl, bl
jmp 0x402b5d
mov ecx, esi
call fcn.00402d70
mov ecx, esi
call fcn.00402ce0
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x402b86
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x402b86
push eax
call fcn.00429cf7
add esp, 4
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.00422285
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bdde
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x154], edi
mov dword [edi + 4], fcn.00429d12
mov dword [edi + 8], fcn.0042a154
mov dword [edi + 0xc], fcn.00429cf7
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x8000
mov dword [edi], vtable.common::t_heap.0
mov dword [ebp - 0x150], edi
mov dword [edi + 0x18], 0
mov byte [edi + 0x1c], 1
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push 0x2c
mov dword [ebp - 0x158], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00421ff6
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
movups xmmword [edi + 0x28], xmm0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 7
mov word [edi + 0x28], ax
mov dword [edi + 0x40], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14c]
mov dword [edi + 0x48], 0xffffffff
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], 1
call fcn.004050d0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x148], 0
je 0x4042ce
cmp byte [ebp - 0x30], 0
lea eax, [ebp - 0x140]
cmove eax, dword [ebp - 0x144]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4042ce
shr eax, 4
not al
test al, 1
je 0x4042ce
cmp byte [ebp - 0x30], 0
lea eax, [ebp - 0x140]
lea ecx, [ebp - 0x28]
cmove eax, dword [ebp - 0x144]
add eax, 4
push eax
call fcn.004055a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00409f30
lea ecx, [ebp - 0x28]
call fcn.00405540
cmp byte [ebp - 0x30], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4042f7
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x140]
cmp eax, ecx
je 0x4042f7
push eax
call fcn.00429cf7
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret
Function at 0x404bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bed0
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [0x4599e4], 0
jne 0x404da0
call fcn.00407960
test al, al
jne 0x404da0
call fcn.00406800
test al, al
je 0x404da0
mov ecx, str.CheckSig1
call fcn.00409120
push 0
push 0
push 0
push 0
push 0
push esi
lea ecx, [ebp - 0x134]
call fcn.00402110
mov dword [ebp - 4], 0
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404d6e
shr eax, 4
not al
test al, 1
je 0x404d6e
call fcn.004091b0
cmp byte [0x45fa99], 0
jne 0x404d48
push 0x114
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004240d0
push 0x114
lea eax, [ebp - 0x35c]
push 0
push eax
call fcn.004240d0
add esp, 0x18
lea edx, [ebp - 0x35c]
lea ecx, [ebp - 0x248]
call fcn.00407760
cmp dword [ebp - 0x244], 6
mov ecx, dword [ebp - 0x240]
ja 0x404d01
jne 0x404d41
cmp ecx, 2
jae 0x404d0a
jmp 0x404d41
mov byte [0x45fa98], 1
jne 0x404d21
movzx eax, byte [0x45fa98]
cmp ecx, 3
mov edx, 1
cmovae eax, edx
mov byte [0x45fa98], al
mov eax, dword [ebp - 0x358]
cmp eax, 0xa
jae 0x404d3a
cmp eax, 6
jne 0x404d41
cmp dword [ebp - 0x354], 3
jb 0x404d41
mov byte [0x45fa98], 1
mov byte [0x45fa99], 1
sub esp, 8
mov ecx, esi
cmp byte [0x45fa98], 0
je 0x404d62
call fcn.00404910
add esp, 8
mov esi, eax
jmp 0x404d73
call fcn.00404480
add esp, 8
mov esi, eax
jmp 0x404d73
mov esi, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x404d9c
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x404d9c
push eax
call fcn.00429cf7
add esp, 4
mov eax, esi
jmp 0x404da2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422285
mov esp, ebp
pop ebp
ret
Function at 0x405c60
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 0x130]
push edi
lea edi, [ebx + 0x130]
push esi
push dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov ecx, edi
call eax
test al, al
je 0x405e68
push ecx
push dword [ebp + 8]
mov ecx, edi
call fcn.00408f40
test al, al
je 0x405e68
mov dword [ebx + 0x34c], edi
mov eax, 0x44e4b0
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebx + 8], edi
cmp dword [eax], edi
je 0x405d18
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x405cb1
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x44ea2c
call fcn.00401e30
push edi
push 0x44eac0
push eax
call fcn.00406410
add esp, 0xc
cmp byte [esi + 0x11c], 0
je 0x405cec
add esi, 0xc
jmp 0x405cef
mov esi, dword [esi + 8]
push 0x44ea40
mov ecx, ebx
call fcn.00401e30
lea ecx, [esi + 4]
push ecx
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
push ecx
mov dword [ebp - 4], ecx
mov ecx, esi
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
call fcn.00402400
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
mov edi, 1
cmp eax, 0xffffffff
jne 0x405dd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 8]
cmp eax, 0x20
jne 0x405d7f
cmp edi, 3
jge 0x405de7
cmp byte [ebx + 0x350], 0
je 0x405daa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405daa
cmp eax, 5
jne 0x405de7
lea ecx, [esi + 8]
cmp edi, 3
jge 0x405de7
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x405d9b
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 0xc]
mov ecx, esi
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.00402400
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc edi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x405d55
push esi
lea ecx, [ebx + 0xc]
call fcn.00402540
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x405e22
lea esi, [ecx + 4]
cmp byte [ecx + 0x114], al
jne 0x405df8
mov esi, dword [ecx]
mov ecx, dword [ebp + 8]
push 0x44ea50
call fcn.00401e30
lea ecx, [esi + 4]
push ecx
push 0x44eac8
push eax
call fcn.00406410
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ecx + 0x114], 0
lea edi, [ecx + 4]
jne 0x405e30
mov edi, dword [ecx]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407350
push 0x44ea40
mov esi, eax
push 0x44eac8
push esi
call fcn.00406410
lea ecx, [edi + 4]
push ecx
push 0x44eac8
push esi
call fcn.00406410
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 0x44a75c
call fcn.00401e30
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc