joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
jmp loc.0040a299

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x404a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sbb al, 0xdc
lcall 0x93f8, 0x771c9c5e
ja 0x4049fa
xchg ebx, eax
ja 0x4049fa
xchg ebx, eax
mov bl, 0x8c

Function at 0x404a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pop esi
lcall 0xf1e7, 0x381a0ebc
push ds
fisttp word [esi]

Function at 0x407ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov ecx, ebx
jb 0x407f1d
mov eax, dword [ebp + 0x10]
sti
add dword [ecx - 0x75], edx
dec ebp
retf
add byte [eax], al
xor esi, esi
les eax, [edi + 0x76]
sti
jp 0x407f33
sahf
push esi
mov eax, dword [0x5d95e0d9]
or bh, al
add dword [ecx], eax
add byte [eax], al
or dword [ebx + 0x558b0c4d], 0xec4e8ded
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x13]
lea ecx, [esi - 0x14]
cmpsd dword [esi], dword es:[edi]
push ecx
adc al, 0x25
adc dword [eax], ebx
rol dword [eax + eax], 0xdd
pop ebp
or ch, bl
inc ebp
in al, dx
fcomp qword [0x40c230]
fcmovb st(0), st(4)
or al, 0x9e
xor dl, al
inc eax
add dl, bl
les ecx, [esi + ebx*4]
loopne 0x407f4d
les edx, [ebx + 0x7b]
jo 0x407f01
jae 0x407fae
cmp esi, ebx
jbe 0x407fc9
invalid
push cs
mov ecx, dword [ebp + 0x5e]
retf
mov dl, byte [esi]
mov byte [edi], dl
inc edi
inc esi
cmp ebp, dword [esi + 0x72]
div byte [esi + 0x37]
jb 0x407fc1
jbe 0x408004
nop
inc ebp
or ah, bl
sbb eax, 0x40c221
fnstsw ax
and eax, 0xfb4100
jne 0x40801d
add byte [ebp + 0x3e], dh
fld qword [ebp + 8]
fmul qword [0x40c2f8]
clc
push ebp
hlt
fcomp qword [0x40c228]
fnstsw ax
test ah, 0xaa
jp 0x40801b
fst qword [ebp + 8]
fmul qword [0x40c2f8]
and eax, 0x1ddcc038
cmp al, al
fcomp qword [0x40c228]
fnstsw ax
test ah, 5
jnp 0x407fed
rcr ah, 0x1d
sub dl, al
inc eax
add bh, bl
loopne 0x408005
les eax, [0x5dddda7b]
hlt
fstp qword [ebp - 0xc]
mov dword [ebp - 4], esi
jmp 0x40801d
fstp st(0)
mov eax, dword [ebp + 0x10]
lea esi, [eax + ebx]
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x407fdc
mov ah, 0x75
cld
and dword [edx + 0x73f33b56], edi
adc ecx, dword [ebx - 0x8a0efbb]
fadd dword [ebp + 0x34901]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420b4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b8a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2d082e6f
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x357b4141
nop
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2b906603
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x7a4f490e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x404890
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4c55c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor al, al
cmp dword [ecx + 0x14], 0
je 0x404936
push 0x4e5e58
push ecx
lea eax, [esp + 0x10]
push eax
call fcn.00408f50
add esp, 0xc
mov dword [esp + 0x30], 0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4048f1
lea eax, [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40491d
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0048c112
add esp, 4
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], 0
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x2c
ret

Function at 0x404960
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
sub esp, 0x20
push ebx
mov ebx, 8
cmp dword [edi + 0x18], ebx
push ebp
lea ebp, [edi + 4]
jb 0x404977
mov eax, dword [ebp]
jmp 0x404979
mov eax, ebp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404a44
cmp dword [edi + 0x18], ebx
jb 0x404992
mov eax, dword [ebp]
jmp 0x404994
mov eax, ebp
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x404a44
mov eax, dword [edi + 0x14]
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.0048b3df
add esp, 4
cmp dword [edi + 0x18], ebx
mov esi, eax
jb 0x4049cd
mov ebp, dword [ebp]
mov eax, dword [edi + 0x14]
push ebp
add eax, 2
push eax
push esi
call fcn.0048ea86
mov ecx, dword [edi + 0x14]
xor eax, eax
mov dword [esi + ecx*2], eax
add esp, 0xc
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x28], ax
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], 0x414
mov dword [esp + 0x2a], eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
push esi
sete bl
call fcn.0048c64a
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret
pop ebp
xor al, al
pop ebx
add esp, 0x20
ret
Function at 0x408f50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c5411
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00405dc0
mov dword [esp + 0x34], 1
mov edx, dword [esp + 0x44]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408fb0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004098f0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00405dc0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x409007
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0048c112
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret

Function at 0x409110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4481
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x10], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00405dc0
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x44]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.004097e0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov word [esi + 4], bx
call fcn.00405dc0
mov dword [esp + 0xc], 1
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x4091b3
mov edx, dword [esp + 0x14]
push edx
call fcn.0048c112
add esp, 4
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x4091e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4438
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
push 0
lea ecx, [esp + 0x14]
call fcn.0048b976
mov dword [esp + 0x28], 0
mov edi, dword [0x51e2e0]
mov esi, 0x51e4a4
mov dword [esp + 0xc], edi
call fcn.0040a6e0
mov esi, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
cmp esi, dword [eax + 0xc]
jae 0x40925b
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + esi*4]
test ecx, ecx
jne 0x40925f
cmp byte [eax + 0x14], 0
je 0x40925f
call fcn.0048b47d
cmp esi, dword [eax + 0xc]
jae 0x409265
mov edx, dword [eax + 8]
mov esi, dword [edx + esi*4]
jmp 0x409261
xor ecx, ecx
jmp 0x409243
mov esi, ecx
test esi, esi
jne 0x4092b2
test edi, edi
je 0x40926d
mov esi, edi
jmp 0x4092b2
lea edi, [esp + 0xc]
call fcn.004094f0
cmp eax, 0xffffffff
jne 0x409298
push str.bad_cast
lea ecx, [esp + 0x18]
call fcn.0048c448
push 0x4fa2ec
lea eax, [esp + 0x18]
push eax
call fcn.0048c600
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [0x51e2e0], esi
call fcn.0040a640
push esi
call fcn.0048b575
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0048b997
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x40c360
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4c52bd
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push edi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x3a]
push ebx
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x20], esi
mov edi, ecx
mov word [esp + 0x40], bx
call fcn.0048d180
add esp, 0xc
push 0x104
lea ecx, [esp + 0x38]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, 7
lea eax, [esp + 0x34]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
jmp 0x40c3f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c3f0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x20]
call fcn.00405350
mov edi, 1
mov dword [esp + 0x248], edi
push edi
push 0x4e5e58
lea ebx, [esp + 0x20]
call fcn.0040d050
cmp eax, 0xffffffff
je 0x40c454
push eax
push esi
xor ecx, ecx
mov edx, ebx
call fcn.0040cfb0
xor ebx, ebx
mov dword [esp + 0x10], edi
mov byte [esp + 0x248], bl
cmp dword [esp + 0x30], 8
jb 0x40c48c
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40c484
xor ebx, ebx
push ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push 0x4e5fd8
mov ecx, esi
mov word [esi + 4], bx
call fcn.00405350
mov dword [esp + 0x10], edi
mov byte [esp + 0x248], bl
cmp dword [esp + 0x30], 8
jb 0x40c48c
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0048c112
add esp, 4
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
mov eax, esi
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x23c
ret
Function at 0x40f590
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x51e2ec], 0
jne 0x40f5f4
lea eax, [esp]
push eax
mov byte [0x51e2ec], 1
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40f5f4
cmp dword [esp + 0x10], 2
jne 0x40f5f4
cmp dword [esp + 4], 6
jb 0x40f5f4
mov al, 1
mov byte [0x51e2ed], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x51e2ed]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x118
ret
Function at 0x40f610
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c61d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x268], ebx
mov esi, dword [esp + 0x270]
mov dword [esp + 0x14], ebx
lea ebp, [esi + 4]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x18], esi
mov word [ebp], bx
mov dword [esp + 0x268], ebx
cmp dword [esi + 0x14], ebx
mov edi, 1
mov dword [esp + 0x14], edi
jne 0x40f827
push 0x206
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.0048d180
add esp, 0xc
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov dword [esp + 0x268], edi
call fcn.0040f590
test al, al
push edi
je 0x40f767
push 0x1c
lea ecx, [esp + 0x5c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f6e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
call fcn.00405350
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00412130
add esp, 4
mov byte [esp + 0x268], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x44]
call fcn.00405dc0
mov byte [esp + 0x268], 1
mov edi, 8
cmp dword [esp + 0x34], edi
jb 0x40f744
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0048c112
add esp, 4
push 9
push str.LocalLow
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.004098f0
jmp 0x40f7a3
push 0x1a
lea edx, [esp + 0x5c]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x54]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f780
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
call fcn.00405350
mov edi, 8
push 0xd
push str.HiHiPlayer_
lea ecx, [esp + 0x40]
call fcn.004098f0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00405dc0
cmp dword [esi + 0x18], edi
jb 0x40f7cc
mov eax, dword [ebp]
jmp 0x40f7ce
mov eax, ebp
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f7f5
cmp dword [esi + 0x18], edi
jb 0x40f7ea
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x40f7fc
mov eax, ebp
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x40f7fc
mov ecx, esi
call fcn.00404890
mov byte [esp + 0x268], bl
cmp dword [esp + 0x50], edi
jb 0x40f816
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048c112
add esp, 4
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov eax, esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x258
ret
Function at 0x40fe90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c5ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov esi, dword [esp + 0x230]
xor ebx, ebx
mov dword [esp + 0xc], ebx
test byte [0x51e3fc], 1
mov dword [esp + 0x10], esi
jne 0x40ff20
mov eax, 1
or dword [0x51e3fc], eax
mov dword [esp + 0x228], eax
push 0x4dc230
mov dword [0x51e3f8], 7
mov dword [0x51e3f4], ebx
mov word [0x51e3e4], bx
call fcn.0048ccb0
add esp, 4
mov byte [esp + 0x228], bl
cmp dword [0x51e3f4], ebx
jne 0x40ff76
push 0x206
lea eax, [esp + 0x1a]
push ebx
push eax
mov word [esp + 0x20], bx
call fcn.0048d180
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ff57
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, 0x51e3e0
call fcn.00405350
cmp dword [0x51e3f8], 8
mov eax, dword [0x51e3e4]
jae 0x40ff89
mov eax, 0x51e3e4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ffb0
cmp dword [0x51e3f8], 8
mov eax, dword [0x51e3e4]
jae 0x40ffa7
mov eax, 0x51e3e4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
jmp 0x40ffba
mov ecx, 0x51e3e0
call fcn.00404890
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51e3e0
mov ecx, esi
mov word [esi + 4], bx
call fcn.00405dc0
mov dword [esp + 0x228], ebx
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x220
ret
Function at 0x4109e0
Capabilities:
Delete directory
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4c5ea0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x519b14]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x519b14]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [esp + 0x68]
push str.:_bdptestdir
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00408f50
xor ebx, ebx
mov dword [esp + 0x6c], ebx
push str._bdptest.txt
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00408f50
add esp, 0x18
mov byte [esp + 0x60], 1
mov eax, dword [esp + 0x20]
mov ebp, 8
cmp dword [esp + 0x34], ebp
jae 0x410a5b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x410a70
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x38]
mov byte [esp + 0x17], 1
call fcn.00404890
test al, al
je 0x410b16
cmp dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
jae 0x410a9b
lea eax, [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410b0d
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0xa
push str.test1
push esi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410ae3
mov byte [esp + 0x17], bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x1c]
call fcn.00412060
cmp eax, 1
jne 0x410b0d
cmp dword [esp + 0x34], ebp
mov eax, dword [esp + 0x20]
jae 0x410b06
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [esp + 0x38]
call fcn.00404960
mov byte [esp + 0x60], bl
cmp dword [esp + 0x34], ebp
jb 0x410b2d
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0048c112
add esp, 4
mov esi, 7
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x50], ebp
jb 0x410b5a
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048c112
add esp, 4
mov al, byte [esp + 0x17]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0048cb7d
add esp, 0x50
ret