joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410870
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b5176
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4e02dc]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
xor ebx, ebx
push 0xd2
lea eax, [esp + 0x2a]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x30], bx
call fcn.0049a440
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, ebx
jne 0x4108e4
xor eax, eax
jmp 0x410a36
cdq
and edx, 3
add eax, edx
push 0x208
lea edx, [esp + 0x102]
mov edi, eax
push ebx
push edx
sar edi, 2
mov word [esp + 0x108], bx
call fcn.0049a440
add esi, 4
mov word [esp + 0x310], bx
mov ebx, dword [esi + 8]
add esp, 0xc
cmp dword [esi + 4], ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x10], eax
jbe 0x41092d
call fcn.0049445b
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
mov dword [esp + 0x14], eax
jbe 0x410942
call fcn.0049445b
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
mov ebx, esi
call fcn.00415620
xor ebx, ebx
cmp edi, ebx
jle 0x410a31
mov dword [esp + 0x14], edi
jmp 0x410964
xor ebx, ebx
mov edi, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x100]
push edx
push edi
mov word [edi + 4], bx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x410a1f
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
call fcn.00401400
mov dword [esp + 0x320], ebx
lea ebx, [esp + 0x20]
call fcn.00415010
mov dword [esp + 0x320], 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 0x4109d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00401400
lea ebx, [esp + 0x1c]
mov dword [esp + 0x320], 1
call fcn.00415010
mov dword [esp + 0x320], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 8
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
jne 0x410962
mov eax, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.004935b6
mov esp, ebp
pop ebp
ret

Function at 0x410e90
Capabilities:
Delete file

Disassembly:
mov eax, dword [edi + 8]
test eax, eax
push esi
lea esi, [edi + 8]
je 0x410eaa
push eax
call fcn.0049566b
add esp, 4
mov dword [esi], 0
mov eax, dword [edi + 0xc]
push eax
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0xc]
push 0x4c802c
push ecx
push esi
mov dword [esi], 0
mov dword [edi + 4], 0
call fcn.0049690b
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x410ef8
push 2
push 0
push eax
call fcn.00495162
mov edx, dword [esi]
push edx
call fcn.00496af3
add esp, 0x10
mov dword [edi + 4], eax
pop esi
ret
Function at 0x4118d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4d53a0
push 0x49bb30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
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 7
push connect
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 0x41195c
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x4e02dc
call fcn.004a6850
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.00494bd5
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
mov edi, edi
cmp esi, edi
je 0x4119ca
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 [0x4e4cf4]
test eax, eax
je 0x411998
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x4119c8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4119c8
push eax
push esi
mov eax, dword [ebp - 0x24]
push eax
call fcn.0041ef10
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [0x4e4cf4]
test eax, eax
je 0x4119c4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x411970
xor edi, edi
mov dword [ebp - 4], 0xfffffffe
call fcn.004119fd
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 0x411a30
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2d10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
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 0x411c1e
cmp esi, ebx
je 0x411c1e
push ebx
push esi
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x411c09
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x24], edi
je 0x411be6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x411be6
mov eax, dword [0x4e4cf8]
test eax, eax
je 0x411ad0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00494bd5
add esp, 4
test eax, eax
mov dword [ebp - 0x20], eax
je 0x411be6
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 [0x4e4cf8]
test eax, eax
je 0x411b06
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x100000
mov dword [ebp - 4], 0
test ebx, ebx
je 0x411b1f
push ebx
call fcn.0049504d
add esp, 4
push esi
mov dword [ebp - 0x18], esi
call fcn.00494bd5
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.00476e40
test eax, eax
jne 0x411b99
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 0x411bc6
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 0x411bc6
mov eax, dword [0x4e4cf8]
test eax, eax
je 0x411b90
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x2c], 1
jmp 0x411bc6
cmp esi, 0x3200000
ja 0x411bc6
cmp eax, 0xfffffffb
jne 0x411bc6
mov eax, dword [0x4e4cf8]
test eax, eax
je 0x411bb6
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, esi
jmp 0x411b12
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x411bd6
push eax
call fcn.0049504d
add esp, 4
test ebx, ebx
je 0x411be3
push ebx
call fcn.0049504d
add esp, 4
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x411bf6
cmp edi, 0xffffffff
je 0x411bf6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x411c09
cmp eax, 0xffffffff
je 0x411c09
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 0x411d00
Capabilities:
Access peb ldr_data
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4b7980
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x78]
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
mov dword [esp + 0x18], 0xffffffff
call edx
xor ebx, ebx
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x70], ebx
mov ecx, dword [0x4e4b74]
neg ecx
sbb ecx, ecx
and ecx, 0x4e4b78
lea esi, [esp + 0x30]
call fcn.00410f20
mov byte [esp + 0x70], 1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.00411c40
mov eax, dword [esp + 0x7c]
mov ecx, dword [0x4e4c6c]
cdq
and edx, 0xfffff
add eax, edx
sar eax, 0x14
add eax, 1
mov edx, eax
shl edx, 4
sub edx, eax
shl ecx, 0xa
add edx, edx
push edi
add edx, edx
mov dword [esp + 0x2c], ecx
push ebp
lea ecx, [esp + 0x24]
add edx, edx
lea eax, [esp + 0x38]
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], eax
call fcn.004700a0
cmp eax, ebx
jne 0x411e3b
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push edx
push eax
push ebx
push str.KHelper::DownloadSimpleCurl_return__d__addr:_ws_errorcode:_d
mov ecx, 0x4e49b4
call fcn.00419ab0
mov edi, dword [esp + 0x30]
add esp, 0x10
push 0x4e4c3c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4e4c3c
mov dword [0x4e4c24], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
push edi
push ebp
mov esi, ebx
call fcn.0040e270
mov ebx, dword [esp + 0x18]
jmp 0x411e46
mov edi, dword [esp + 0x24]
mov ecx, ebp
call fcn.0042d3e0
lea esi, [esp + 0x30]
call fcn.00411440
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411e77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x411e90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4b7953
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
or edi, 0xffffffff
mov ecx, 0x4e3844
mov dword [esp + 0x14], edi
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, esi
mov dword [esp + 0x18], eax
call fcn.00411c40
push 0xd4
call fcn.00493965
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebp
mov byte [esp + 0x2c], 1
je 0x411f13
mov edi, eax
call fcn.004150f0
mov edi, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
mov byte [esp + 0x2c], 0
je 0x412018
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp]
cdq
and edx, 0xfffff
add eax, edx
sar eax, 0x14
add eax, 1
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ecx + 8]
add edx, edx
add edx, edx
add edx, edx
push edx
push ebp
call eax
mov ecx, dword [ebp]
mov edx, dword [ecx]
push 1
push ebp
call edx
mov eax, dword [ebp]
mov ecx, dword [eax + 0x20]
push ebp
call ecx
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
push esi
push ebx
push ebp
call eax
test eax, eax
jne 0x411ff0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x14]
push ebp
call edx
push eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x24]
mov ecx, ebp
call edx
push eax
push 0
push str.KHelper::DownloadWithToolUpd_Navigate_return__d__ipAddr:_ws__errorCode:_d
mov ecx, 0x4e49b4
call fcn.00419ab0
mov eax, dword [ebp]
mov ecx, dword [eax + 0x14]
add esp, 0x10
push ebp
call ecx
push 0x4e4c3c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4e4c3c
mov dword [0x4e4c24], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push ebp
call eax
mov edx, dword [ebp]
mov edi, eax
mov eax, dword [edx + 0x24]
mov ecx, ebp
call eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edi
push ebx
call fcn.0040e270
jmp 0x41200b
mov edx, dword [ebp]
mov eax, dword [edx + 0x24]
mov ecx, ebp
call eax
mov edi, eax
mov ecx, ebx
call fcn.0042d3e0
mov dword [esp + 0x14], 0
mov ecx, dword [ebp]
mov edx, dword [ecx + 0x28]
push ebp
call edx
mov edi, dword [esp + 0x14]
xor eax, eax
test edi, edi
sete al
test eax, eax
je 0x41202c
add dword [0x4e4b4c], 1
jmp 0x412033
add dword [0x4e4b50], 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 0x41205b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x412570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push 0x4c8308
push 0x67
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4125ed
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4125ed
cmp dword [ebp], esi
jae 0x4125b0
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 0x4125ed
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x4125cf
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0049a4c0
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 0x413490
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 0x413533
push ebx
push esi
call fcn.004929e2
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 0x41351c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x4c1d98
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41351c
cmp dword [esp + 0x14], esi
je 0x41351c
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 0x413529
push ebx
call fcn.004935c5
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 0x413540
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4b61e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
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.00401400
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x4135a3
test al, 0x10
jne 0x41364d
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 0x41364d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x41364d
lea ecx, [esp + 0x14]
call fcn.0041c8e0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x41360f
add eax, 0xfffffff0
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4135f9
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.00413540
add esp, 4
test eax, eax
jne 0x41363b
lea ecx, [esp + 0x14]
call fcn.00401850
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 0x41364d
call ebx
cmp eax, 0xb7
jne 0x41361c
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 0x41366e
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 0x413810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b4fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], 0
call fcn.00413170
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.0040e5b0
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ebx, eax
mov byte [esp + 0x38], 2
call fcn.0040e5b0
add esp, 0x10
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.0040a8e0
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 0x4138c0
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 0x4138e5
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 0x41390a
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.00413960
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 0x41393d
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 0x413960
Capabilities:
Access peb ldr_data
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4b4f90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
mov ebx, 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
mov eax, dword [0x4e3844]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3844
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
push 0
push esi
mov byte [esp + 0x30], bl
call fcn.004965a0
add esp, 8
test eax, eax
jne 0x413b05
push eax
push 0x80
push 3
push eax
push 7
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413a1e
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
cmp ebp, eax
je 0x413a1e
push esi
push eax
push ebp
push str.IsItemDiffFromFile_File_Size__local:_d__server:_d__path:_ws
jmp 0x413af8
mov ebp, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
add ebp, 8
xor edi, edi
cmp dword [ecx - 0xc], edi
je 0x413aa3
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00413490
add esp, 0xc
cmp eax, edi
je 0x413aa3
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 0x4c1d9c
lea edi, [esp + 0x28]
call fcn.00401250
mov edi, dword [esp + 0x28]
add esp, 0x14
cmp dword [edi - 0xc], 0
je 0x413aa1
lea eax, [esp + 0x14]
push eax
mov eax, ebp
call fcn.00414f10
add esp, 4
test al, al
je 0x413aa1
mov ecx, dword [ebp]
push esi
push ecx
push edi
push str.IsItemDiffFromFile_Version__local:_ws__server:_ws__path:_ws
jmp 0x413af8
xor edi, edi
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], edi
call fcn.004118d0
add esp, 8
cmp eax, edi
je 0x413b05
mov eax, dword [esp + 0x1c]
push eax
push 0x4c84b8
lea edi, [esp + 0x18]
call fcn.00401250
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
add edi, 0xc
push ecx
mov eax, edi
call fcn.00414e50
add esp, 0xc
test al, al
je 0x413aea
xor ebx, ebx
jmp 0x413b05
mov edx, dword [edi]
mov eax, dword [esp + 0x10]
push esi
push edx
push eax
push str.IsItemDiffFromFile_CRC__local:_ws__server:_ws__path:_ws
mov ecx, 0x4e49b4
call fcn.00419ab0
add esp, 0x10
mov byte [esp + 0x28], 0
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 0x413b2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413b52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x413c20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b63e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
push eax
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x3c], esp
mov esi, esp
call fcn.00401270
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x28], 2
mov esi, dword [esp + 0x34]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x1c], esp
mov ebp, esp
call fcn.00401270
add eax, 0x10
mov dword [ebp], eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x34], 3
call fcn.00401400
mov byte [esp + 0x30], 1
call fcn.0040d750
mov byte [esp + 0x20], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x413ccb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413cec
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret