joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4107f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4ae360
push 0x463e40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
jne 0x41087c
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4b7110
call fcn.0046bcd8
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x25800
call fcn.00460523
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov edi, edi
cmp esi, edi
je 0x4108ea
push edi
lea edx, [ebp - 0x28]
push edx
push 0x25800
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
mov eax, dword [0x4bac8c]
test eax, eax
je 0x4108b8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x4108e8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4108e8
push eax
push esi
mov eax, dword [ebp - 0x24]
push eax
call fcn.00421b60
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [0x4bac8c]
test eax, eax
je 0x4108e4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x410890
xor edi, edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0041091d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410950
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492680
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
je 0x410b3e
cmp esi, ebx
je 0x410b3e
push ebx
push esi
call fcn.004602c8
add esp, 8
test eax, eax
jne 0x410b29
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x24], edi
je 0x410b06
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x410b06
mov eax, dword [0x4bac90]
test eax, eax
je 0x4109f0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00460523
add esp, 4
test eax, eax
mov dword [ebp - 0x20], eax
je 0x410b06
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x4bac90]
test eax, eax
je 0x410a26
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x100000
mov dword [ebp - 4], 0
test ebx, ebx
je 0x410a3f
push ebx
call fcn.0045f409
add esp, 4
push esi
mov dword [ebp - 0x18], esi
call fcn.00460523
mov ecx, dword [ebp - 0x14]
mov ebx, eax
mov eax, dword [ebp - 0x20]
add esp, 4
lea edi, [ebp - 0x18]
mov edx, ebx
mov dword [ebp - 0x30], ebx
call fcn.0045c030
test eax, eax
jne 0x410ab9
mov edx, dword [ebp + 8]
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push edx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x410ae6
mov esi, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x1c], esi
jne 0x410ae6
mov eax, dword [0x4bac90]
test eax, eax
je 0x410ab0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x2c], 1
jmp 0x410ae6
cmp esi, 0x3200000
ja 0x410ae6
cmp eax, 0xfffffffb
jne 0x410ae6
mov eax, dword [0x4bac90]
test eax, eax
je 0x410ad6
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, esi
jmp 0x410a32
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410af6
push eax
call fcn.0045f409
add esp, 4
test ebx, ebx
je 0x410b03
push ebx
call fcn.0045f409
add esp, 4
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x410b16
cmp edi, 0xffffffff
je 0x410b16
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x410b29
cmp eax, 0xffffffff
je 0x410b29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
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 0x410d30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4959a0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
mov dword [esp + 0x14], 0xffffffff
call edx
xor ebx, ebx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x6c], ebx
mov ecx, dword [0x4bab14]
neg ecx
sbb ecx, ecx
and ecx, 0x4bab18
lea esi, [esp + 0x28]
call fcn.0040fd60
mov byte [esp + 0x6c], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, ebp
mov esi, eax
call fcn.00410c70
cmp dword [0x4baa80], ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
je 0x410dd2
mov dword [esp + 0x24], 0xc800
push ebp
mov ebp, dword [esp + 0x78]
push ebp
lea ecx, [esp + 0x20]
push ecx
call fcn.0045ba90
cmp eax, ebx
jne 0x410e28
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push 0x4a0ce8
mov ecx, 0x4ba960
call fcn.0041d5c0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
add esp, 0x10
call edi
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
sub eax, esi
push eax
push ecx
push ebx
push edx
mov esi, ebp
call fcn.00402e70
mov ebx, dword [esp + 0x14]
jmp 0x410e33
mov edi, dword [esp + 0x20]
mov ecx, ebp
call fcn.0042cd60
lea esi, [esp + 0x28]
call fcn.00410280
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x410e80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x496653
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
or esi, 0xffffffff
mov ecx, 0x4b994c
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00410c70
push 0xd4
call fcn.0045f5be
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x2c], 1
je 0x410f03
mov esi, eax
call fcn.00416f70
mov esi, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
mov byte [esp + 0x2c], 0
je 0x410fb3
mov eax, dword [ebp]
mov ecx, dword [eax]
push 1
push ebp
call ecx
mov edx, dword [ebp]
mov eax, dword [edx + 0x20]
push ebp
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x10]
push edi
push ebx
push ebp
call edx
test eax, eax
jne 0x410f8b
mov eax, dword [ebp]
mov ecx, dword [eax + 0x14]
push ebp
call ecx
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x24]
mov ecx, ebp
call eax
push eax
push 0
push str.KHelper::DownloadWithToolUpd_Navigate_return__d__ipAddr:_ws__errorCode:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x14]
add esp, 0x10
push ebp
call edx
mov edi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, ebp
call edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push eax
push edi
push ebx
call fcn.00402e70
jmp 0x410fa6
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
mov ecx, ebp
call eax
mov edi, eax
mov ecx, ebx
call fcn.0042cd60
mov dword [esp + 0x14], 0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x28]
push ebp
call edx
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
sete al
test eax, eax
je 0x410fc7
add dword [0x4baaf0], 1
jmp 0x410fce
add dword [0x4baaf4], 1
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ff6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x411da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x4a7a0c
push 0x67
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x411e1d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x411e1d
cmp dword [ebp], esi
jae 0x411de0
pop edi
mov dword [ebp], esi
pop esi
mov ebx, 1
pop ebp
mov eax, ebx
pop ebx
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x411e1d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x411dff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00464c90
add esp, 0xc
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ebx, 1
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x412cb0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
lea edx, [esp + 0xc]
xor edi, edi
push edx
mov dword [eax], edi
push ebp
mov dword [esp + 0x14], edi
mov dword [ecx], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
je 0x412d53
push ebx
push esi
call fcn.0045ec2d
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push esi
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412d3c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x49fcd0
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412d3c
cmp dword [esp + 0x14], esi
je 0x412d3c
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea edi, [esi + 1]
test ebx, ebx
je 0x412d49
push ebx
call fcn.0045ef4b
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x412d60
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x493c58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004021c0
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x412dc3
test al, 0x10
jne 0x412e6d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x412e6d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x412e6d
lea ecx, [esp + 0x14]
call fcn.004212d0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x412e2f
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x412e19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00412d60
add esp, 4
test eax, eax
jne 0x412e5b
lea ecx, [esp + 0x14]
call fcn.00402360
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push esi
call edi
test eax, eax
jne 0x412e6d
call ebx
cmp eax, 0xb7
jne 0x412e3c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x412e8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x413570
Capabilities:
Access peb ldr_data
Get kernel32 base address
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x493629
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebx, 1
mov dword [esp + 0x28], ebx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [ebp], eax
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.0042cd40
mov byte [esp + 0x28], 2
mov eax, dword [eax]
push str.signs.ini
push eax
push 0x4a1128
lea edi, [esp + 0x20]
call fcn.004039d0
mov byte [esp + 0x34], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413628
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
push str.Version
push str.Sign
call edi
mov ebx, eax
test ebx, ebx
je 0x413693
push esi
push 0
push str.BuildNum
push str.Sign
call edi
movzx eax, ax
test ax, ax
je 0x413693
movzx eax, ax
push eax
movzx dx, bh
movzx esi, bl
mov ecx, ebx
sar ecx, 0x10
movzx edx, dx
movzx eax, si
movzx ecx, cx
push eax
movzx edx, dx
movzx eax, cx
push edx
push eax
push str._04d._02d._02d._02d
mov edi, ebp
call fcn.004039d0
mov esi, dword [esp + 0x28]
add esp, 0x14
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4136b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x413870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4957e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], 0
call fcn.00412990
add esp, 4
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, eax
mov byte [esp + 0x30], 1
call fcn.00416b70
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ebx, eax
mov byte [esp + 0x38], 2
call fcn.00416b70
add esp, 0x10
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00401cd0
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413920
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413945
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41396a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov esi, dword [esp + 0x14]
call fcn.004139c0
mov edi, eax
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41399d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x413d30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4b7110]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, 1
test byte [0x4bacc8], al
mov dword [esp], 0
jne 0x413d82
or dword [0x4bacc8], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
add eax, 0x10
push 0x498390
mov dword [0x4bacc4], eax
call fcn.0045fa00
add esp, 4
mov eax, dword [0x4bacc4]
cmp dword [eax - 0xc], 0
jne 0x413df2
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x413ded
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x413db0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413db0
sub eax, edx
sar eax, 1
push ebx
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4bacc4
call fcn.00401f30
mov eax, 0x4bacc4
call fcn.00412870
push 8
push str.drivers_
push 0x4bacc4
call fcn.00401ff0
pop ebx
mov eax, dword [0x4bacc4]
add eax, 0xfffffff0
call fcn.00401ec0
mov ecx, dword [esp + 0x20c]
add eax, 0x10
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.0045eec1
add esp, 0x210
ret
Function at 0x413e20
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4948d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push edi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x10], edi
push 0
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push esi
push ebx
call ebp
test eax, eax
je 0x413e80
xor ebp, ebp
jmp 0x413ec2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push str._s_del__x
lea edi, [esp + 0x1c]
call fcn.004039d0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push esi
call fcn.0046124d
add esp, 8
test eax, eax
je 0x413f61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x413f14
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004021c0
push 1
push 0x4a12cc
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x28], 1
call fcn.00401ff0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x1c], 0
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 0x413f14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
push ebx
push ebp
push str.RenameUpdate_return:_d__src:_ws__dst:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
lea eax, [edi - 0x10]
add esp, 0x10
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x14
ret
push 0
push esi
push ebx
call ebp
test eax, eax
jne 0x413f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov ebp, eax
call fcn.0046124d
add esp, 8
jmp 0x413ebe
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor ebp, ebp
jmp 0x413ec2
Function at 0x413fa0
Capabilities:
Copy file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x493a18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x4b7110]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [0x4b994c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4b994c
mov dword [esp + 0x14], 0xffffffff
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
test ebp, ebp
mov dword [esp + 0x20], 0
jne 0x413ff8
xor eax, eax
jmp 0x41400f
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414000
sub eax, edx
sar eax, 1
mov ebx, eax
push ebp
lea eax, [esp + 0x14]
call fcn.00401f30
push 1
push 0x4a12cc
lea eax, [esp + 0x18]
push eax
call fcn.00401ff0
push 0
push edi
call fcn.004602c8
add esp, 8
test eax, eax
je 0x4140aa
push str.RebootUpdate_src_file_is_Not_exsist_
mov ecx, 0x4ba960
call fcn.0041d5c0
mov esi, dword [esp + 0x14]
add esp, 4
mov ebx, dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push edi
push ebx
push str.RebootUpdate_return:_d__src:_ws__dst:_ws_errorcode:_d
mov ecx, 0x4ba960
call fcn.0041d5c0
lea eax, [esi - 0x10]
add esp, 0x14
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414095
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push ebp
call ebx
mov esi, dword [esp + 0x10]
push 0
push esi
call ebx
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x414113
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RebootUpdate_CopyFile_fail__error:_d__src:_ws__dst:_ws
mov ecx, 0x4ba960
call fcn.0041d5c0
add esp, 0x10
test edi, edi
jne 0x4140ef
xor eax, eax
jmp 0x414103
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4140f4
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x14]
call fcn.00401f30
mov esi, dword [esp + 0x10]
push 5
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x414051
xor ebx, ebx
jmp 0x414055