joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4947e0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
push edi
mov edi, edx
je 0x494869
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x494869
mov eax, dword [esi + 8]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x494862
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49483b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49485b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x494883
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
call fcn.00494540
mov esi, eax
jmp 0x494885
xor esi, esi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop ebx
test edx, edx
jg 0x4948a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4948c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x4948d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
je 0x494979
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x494979
mov eax, dword [esi + 8]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x494972
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49492d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49494d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49496d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
ret 0xc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4949b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4949d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4949f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
ret 0xc

Function at 0x494d00
Capabilities:
Check os version

Disassembly:
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi], vtable.CIosSettingWnd.0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 1
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
cmp dword [0x65e100], edi
jne 0x494d62
push 0x623830
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x65e100], 1
cmp dword [0x623840], 2
jne 0x494d80
cmp dword [0x623834], 6
jb 0x494d80
mov eax, 1
mov dword [esi + 0x60], eax
mov eax, esi
pop edi
ret
mov dword [esi + 0x60], edi
mov eax, esi
pop edi
ret
Function at 0x494f90
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov edx, dword [esi + 4]
push 0x50
push 0x1e
push 0x7d
add eax, 2
push eax
add ecx, 0xffffff83
push ecx
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
push 0x105
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x64], 1
ret 8

Function at 0x4957d0
Capabilities:
Check if file exists
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5a01a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push 0x5d79d4
call fcn.00403fa0
push eax
push 0x65fa18
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x24]
push eax
mov ecx, 0x65fa18
call fcn.004066b0
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4958f4
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x3c], 1
call fcn.00495a60
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4958d4
cmp dword [edi - 0xc], ebx
je 0x4958d4
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], esp
mov esi, esp
call fcn.00492af0
add eax, 0x10
lea edx, [esp + 0x18]
mov dword [esi], eax
push edx
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x2c]
call fcn.00495cb0
cmp eax, ebx
je 0x4958cb
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push esi
push ebp
push ecx
push 1
call fcn.00496210
mov edx, dword [esp + 0x14]
push esi
push ebp
push edx
call fcn.00496290
jmp 0x4958d4
push ebx
push ebx
push ebx
push ebx
call fcn.00496210
lea eax, [edi - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4958f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49592a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x495940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5967d9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x30]
push eax
call fcn.00403fa0
push eax
push 0x65fa18
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x65fa18
call fcn.004066b0
mov byte [esp + 0x24], 2
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
call eax
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x24], 1
call fcn.0049d331
mov eax, dword [esp + 0x18]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x24]
movzx edx, ax
push edx
shr eax, 0x10
push eax
push 0x5d7f50
call fcn.00407710
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x495a48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret 8
Function at 0x496210
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0x5d7904
push str.SOFTWARE360Safe_stat
push reloc.WS2_32.dll_bind
call esi
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push str.vmobilemgr_popwnd
push str.SOFTWARE360Safe_stat
push reloc.WS2_32.dll_bind
call esi
push 4
lea edx, [esp + 0x14]
push edx
push 4
push str.vmobilemgr_fwgamerec
push str.SOFTWARE360Safe_stat
push reloc.WS2_32.dll_bind
call esi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push str.vmobilemgr_fwupdateicon
push str.SOFTWARE360Safe_stat
push reloc.WS2_32.dll_bind
call esi
mov eax, 1
pop esi
ret 0x10
Function at 0x497f20
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push esi
push 1
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jns 0x497faa
mov ecx, dword [esi + 4]
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov ecx, dword [esi + 0x38]
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push ecx
shr eax, 0x10
mov ecx, esi
call fcn.00497770
test eax, eax
je 0x497faa
mov edx, dword [esi + 0x34]
push edx
mov eax, esi
call fcn.004976f0
mov dword [esi + 0x64], eax
movzx eax, ax
shl eax, 0x10
or eax, 5
push eax
call fcn.00497850
mov ecx, dword [esi + 4]
push 0x105
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
pop esi
add esp, 0x24
ret 4

Function at 0x498bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a2130
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00498ec0
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x498c2a
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
mov edx, dword [esp + 0x38]
mov eax, 0x499020
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
mov ecx, 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
sub esp, 8
mov eax, esp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], esp
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edi
push ecx
mov dword [eax], 0x49a2c0
mov dword [eax + 4], ecx
mov esi, esp
mov eax, edi
mov dword [esp + 0x44], esp
call fcn.00498390
push ecx
mov esi, esp
mov eax, edi
mov byte [esp + 0x40], 1
mov dword [esp + 0x20], esp
call fcn.00498370
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x40], 0
call fcn.0049fc4f
xor edx, edx
add esp, 0x10
cmp eax, 1
sete dl
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498ccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
Function at 0x498cf0
Capabilities:
Access peb ldr_data
Check if file exists
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a5170
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
cmp dword [ebx + 0x4c], 0
je 0x498df3
test edi, edi
je 0x498df3
lea esi, [esp + 0xc]
mov eax, edi
call fcn.00498390
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0xc]
cmp dword [esi - 0xc], 0
je 0x498dcf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x498dcf
mov eax, dword [0x6285c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x6285c4
call edx
add eax, 0x10
mov dword [esp + 8], eax
sub esp, 8
mov eax, esp
mov dword [esp + 0x18], esp
push 0
mov byte [esp + 0x28], 1
mov dword [eax], 0
mov eax, dword [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov esi, esp
mov eax, edi
mov dword [esp + 0x40], esp
call fcn.00498390
mov edx, dword [ebx + 0x4c]
push edx
call fcn.00483340
lea ecx, [esp + 8]
mov esi, eax
call fcn.00406760
lea ecx, [esp + 0xc]
call fcn.00406760
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498df3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 4
Function at 0x498ec0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a1a00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x2c], 0
test ebp, ebp
jne 0x498f1c
mov esi, dword [esp + 0x28]
push esi
mov ecx, 0x5d74e0
call fcn.004066b0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8
mov esi, dword [ebp]
call fcn.0042d470
push 0
push esi
mov ecx, eax
call fcn.00444710
mov esi, eax
test esi, esi
je 0x498ef6
mov eax, dword [0x6285c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x6285c4
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], 0
call fcn.00498e10
mov byte [esp + 0x20], 1
mov ecx, dword [esi + 0x18]
mov edx, dword [eax]
push ecx
add esi, 0x40
push esi
push edx
push str._s_s_d.apk
lea edi, [esp + 0x3c]
call fcn.00407710
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x498fa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x498fb8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x18], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov ecx, ebp
mov dword [edi], eax
call fcn.004982f0
mov eax, esi
call fcn.004073f0
mov edi, dword [esp + 0x28]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499006
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8

Function at 0x49b039
Capabilities:
Hide graphical window

Disassembly:
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x49b06f
test al, 8
jne 0x49b06f
push 0xfffffffffffffff0
push dword [esp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x49b06f
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x49b06f
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x49b087
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
jmp fcn.0049a6c4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
Function at 0x49bd8c
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x49be5c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49be5c
push esi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.004fe380
add esp, 0xc
push edi
push 0x20a
lea eax, [ebp - 0x80]
push eax
call fcn.00407bf0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5d7fb0
lea esi, [ebp - 0x80]
call fcn.00407c30
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.00407c30
mov eax, esi
push eax
call ebx
pop esi
test eax, eax
je 0x49be38
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x80]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
jne 0x49be58
push 4
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x49be5f
xor eax, eax
jmp 0x49be5f
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop ebx
call fcn.004f673f
add ebp, 0x190
leave
ret

Function at 0x49c0e9
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x5c], ax
xor ebx, ebx
lea eax, [ebp - 0x5a]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x60], edi
call fcn.004fe380
add esp, 0xc
push edi
mov eax, bind
mov ecx, 0x104
lea edx, [ebp - 0x5c]
call fcn.00407d20
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x410
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x6a], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x66], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x7c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x49c179
inc eax
jmp 0x49c1bd
push esi
call fcn.004f499a
mov edi, eax
pop ecx
cmp edi, ebx
je 0x49c1bb
push esi
push ebx
push edi
call fcn.004fe380
add esp, 0xc
push dword [ebp - 0x60]
mov ecx, 0x104
mov edx, edi
call fcn.00407bc0
push ebx
push ebx
push edi
push 0x49be75
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x49c1bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f673f
add ebp, 0x1b4
leave
ret
Function at 0x49c1d5
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0xc
mov eax, 0x594557
call fcn.004fed1d
mov eax, dword [ebp + 0x19c]
mov ebx, 0xc8
xor edi, edi
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp]
mov esi, ecx
push edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
call fcn.004fe380
push ebx
lea eax, [ebp + 0xc8]
push edi
push eax
call fcn.004fe380
add esp, 0x18
call fcn.00406670
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x10]
xor esi, esi
push 3
inc esi
pop eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
call fcn.004098d0
push ebx
lea eax, [ebp + 0xc8]
push eax
push edi
push edi
push edi
push ebx
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49c277
mov edi, dword [ebp - 0x14]
lea edx, [ebp + 0xc8]
call fcn.00406780
lea ecx, [ebp - 0x10]
call fcn.00406760
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004f673f
add ebp, 0x194
leave
ret
Function at 0x49c3b6
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xc
mov eax, 0x5965db
call fcn.004fed1d
mov edi, ecx
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49c3c9
sub eax, edx
sar eax, 1
test edi, edi
je 0x49c505
test eax, eax
je 0x49c505
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49c3fa
xor eax, eax
inc eax
jmp 0x49c507
lea esi, [ebp - 0x10]
call fcn.00406670
and dword [ebp - 4], 0
lea esi, [ebp - 0x14]
call fcn.00406670
push edi
push 0x5d7fa8
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00407710
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
pop ecx
pop ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x49c50d
cmp ecx, eax
jg 0x49c50d
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x49c44f
mov edx, 0x5d7f4c
call fcn.00409860
xor eax, eax
jmp 0x49c4cb
mov eax, edi
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x10]
call fcn.004098d0
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x49c4a1
cmp dword [esi + 0xc], 0
jl 0x49c495
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x49c495
call fcn.004073f0
mov ebx, eax
mov eax, esi
call fcn.00403930
add ebx, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x49c4a1
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x14]
call fcn.004072f0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00406760
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49c4c8
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49c4f5
lea eax, [edi + 1]
push 0x5c
pop edx
lea esi, [ebp - 0x10]
call fcn.004098a0
mov edi, eax
cmp edi, 0xffffffff
jne 0x49c453
lea ecx, [ebp - 0x14]
call fcn.00406760
mov ecx, esi
call fcn.00406760
jmp 0x49c3f2
lea ecx, [ebp - 0x14]
call fcn.00406760
lea ecx, [ebp - 0x10]
call fcn.00406760
xor eax, eax
call fcn.004fedbc
ret
push 0x80070057
call fcn.00401050
int3