joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a1eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
jne 0x44b3cd
mov eax, 0x80004005
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.00412400
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.00408510
push 2
push 0x5bce38
lea ecx, [esp + 0x1c]
push ecx
call fcn.00408a10
mov eax, dword [esi]
push 2
lea edx, [esp + 0x24]
xor ebx, ebx
push edx
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44b459
call fcn.004129d0
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 0xc]
mov edx, dword [esi]
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x44b47e
call fcn.004129d0
mov esi, eax
jmp 0x44b480
xor esi, esi
lea eax, [edi - 0x10]
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44b4a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
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 0x44b4c8
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44b4f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x818], eax
cmp dword [ebp + 8], 0
push edi
jne 0x44b54e
lea eax, [esp + 4]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x800
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jl 0x44b54e
cmp eax, 0x10
lea edi, [esi - 0x24]
jb 0x44b54e
lea eax, [esp + 0x18]
call fcn.0044a880
mov ecx, dword [esp + 0x81c]
pop edi
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 4
Function at 0x44b570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a2fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [esi], 0
jne 0x44b5b9
mov eax, 0x80004005
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push eax
lea edi, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.0044b670
mov edx, dword [esi]
push 2
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
push ebx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44b60c
call fcn.004129d0
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
mov edx, dword [esi]
push ebx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x44b62f
call fcn.004129d0
mov ebx, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44b653
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 ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44e4f0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a76d8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
lea edi, [esp + 0x40]
mov dword [esp + 0x20], eax
mov byte [esp + 0x1b], 0
call fcn.0044e860
add esp, 4
mov dword [esp + 0x68], 0
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x44e558
lea eax, [esp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e641
push 1
lea edi, [esp + 0x24]
call fcn.0044e860
lea ecx, [esp + 0x40]
add esp, 4
push ecx
call fcn.0044f020
add esp, 4
test al, al
jne 0x44e5ef
mov edx, edi
push edx
call fcn.0044f020
add esp, 4
test al, al
je 0x44e5ef
mov ecx, dword [esp + 0x40]
mov edi, 8
cmp dword [esp + 0x54], edi
jae 0x44e5bc
lea ecx, [esp + 0x40]
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x44e5ca
lea eax, [esp + 0x24]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x44e5f4
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x44e5e6
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44e5f4
mov edi, 8
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x44e602
lea eax, [esp + 0x24]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call ebx
cmp dword [esp + 0x38], edi
mov esi, eax
jb 0x44e629
mov eax, dword [esp + 0x24]
push eax
call fcn.00578327
add esp, 4
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
je 0x44e67e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x44e671
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44e671
cmp dword [esp + 0x18], edi
mov bl, 1
je 0x44e675
mov bl, byte [esp + 0x17]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44e682
mov bl, byte [esp + 0x17]
cmp dword [esp + 0x54], 8
jb 0x44e696
mov eax, dword [esp + 0x40]
push eax
call fcn.00578327
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.005787fd
mov esp, ebp
pop ebp
ret 4
Function at 0x44e6c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5a76a8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
xor ebx, ebx
push ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x20], eax
call fcn.0044e860
add esp, 4
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x44e71c
lea eax, [esp + 0x40]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x44e793
push 1
lea edi, [esp + 0x24]
call fcn.0044e860
mov eax, dword [esp + 0x28]
mov edi, 8
add esp, 4
cmp dword [esp + 0x38], edi
jae 0x44e759
lea eax, [esp + 0x24]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
cmp dword [esp + 0x38], edi
mov esi, eax
jb 0x44e77d
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00578327
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
je 0x44e7bb
mov eax, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0x1c]
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44e7b4
cmp dword [esp + 0x18], 0x10
jne 0x44e7b4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x54], 8
jb 0x44e7cf
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00578327
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005787fd
add esp, 0x54
ret 4
Function at 0x44e860
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x5a766d
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, 7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov dword [esp + 0x14], edi
mov word [edi + 4], bx
push 0x208
lea eax, [esp + 0x38]
push ebx
mov dword [esp + 0x254], ebx
push eax
mov dword [esp + 0x1c], 1
call fcn.00580260
mov cl, byte [esp + 0x260]
add esp, 0xc
neg cl
push 1
lea edx, [esp + 0x38]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x44e9a2
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x44e910
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x20]
call fcn.0040bce0
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
mov esi, edi
mov dword [esp + 0x254], 1
call fcn.0040bbd0
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], 8
jb 0x44e962
mov edx, dword [esp + 0x1c]
push edx
call fcn.00578327
add esp, 4
cmp byte [esp + 0x254], bl
mov ecx, edi
je 0x44e976
push 0x13
push str.TencentDeskUpdate
jmp 0x44e97d
push 0x10
push str.TencentDesktop
call fcn.0040f950
mov ecx, edi
call fcn.0044e9d0
test al, al
jne 0x44e994
mov ecx, edi
call fcn.0044eb40
push 0xa
push 0x5c089c
mov ecx, edi
call fcn.0040f950
mov eax, edi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005787fd
add esp, 0x244
ret

Function at 0x44f0a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.metnsdclsid
push closesocket
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44f122
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push ebx
push esi
lea ecx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.SequenceID
push eax
mov esi, eax
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f10a
mov eax, dword [esp + 0x14]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
test eax, eax
sete bl
test esi, esi
je 0x44f118
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 8
ret 4
xor al, al
add esp, 8
ret 4
Function at 0x44f130
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5a1e80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea ebx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call fcn.004747c0
lea edi, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004035d0
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f1b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x44f1e2
lea eax, [edx - 0x10]
mov dword [esp + 0x2c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x44f1db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x44f302
jle 0x44f20c
lea ecx, [eax - 1]
test ecx, ecx
jl 0x44f2a8
cmp ecx, eax
jg 0x44f2a8
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x44f20c
push 0x5c
lea edi, [esp + 0x18]
call fcn.00404400
push 9
push str.Global.db
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403fc0
mov ebp, dword [esp + 0x14]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push ebp
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, esi
jne 0x44f2b2
call fcn.004129d0
test eax, eax
jl 0x44f283
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [esp + 0x14], eax
jne 0x44f26c
call fcn.004129d0
test eax, eax
jl 0x44f278
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jne 0x44f278
cmp dword [esp + 0x18], 0
je 0x44f2ba
test edi, edi
je 0x44f283
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x44f1db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x44f302
push 0x80070057
call fcn.00404550
mov edi, eax
mov dword [esp + 0x1c], edi
jmp 0x44f24b
mov ecx, dword [esp + 0x34]
mov esi, 0x10
lea edx, [esp + 0x1c]
call fcn.0041ae30
test eax, eax
setge bl
test edi, edi
je 0x44f2dc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x44f970
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x44faff
push esi
lea ecx, [esp + 0x24]
push str._sConnection
push ecx
mov eax, 0x103
call fcn.00453c40
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44faf8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x44faf1
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.00580260
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x44faf1
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x44fae1
push ebp
lea edx, [esp + 0x24]
push 0x5c09e8
push edx
call fcn.00579335
add esp, 0xc
test eax, eax
jne 0x44fabc
xor ebp, ebp
jmp 0x44faf1
cmp dword [esp + 0xc], esi
jne 0x44fae1
push 3
lea eax, [esp + 0x24]
push 0x5c09e8
push eax
call fcn.00579335
add esp, 0xc
test eax, eax
je 0x44fae1
mov ebp, 2
jmp 0x44faf1
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005787fd
add esp, 0x11c
ret
Function at 0x450b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5aade8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x450be7
call fcn.004129d0
cmp eax, ebx
jl 0x450bd2
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x2c]
push ecx
push eax
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x450bef
call fcn.004129d0
cmp eax, ebx
jge 0x450bef
cmp esi, ebx
je 0x450bd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x450ba0
push ebx
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x450cf2
call fcn.004129d0
cmp eax, ebx
jl 0x450bc7
mov eax, dword [esp + 0x18]
cmp eax, 0x2000
ja 0x450bc7
mov dword [esp + 0x20], ebx
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x40], 1
call fcn.00419050
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov ecx, edi
lea edx, [esp + 0x14]
call fcn.0041ae30
cmp eax, ebx
jl 0x450ccb
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x450ccb
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x40], 2
call fcn.00419050
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004021f0
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
mov ecx, esi
mov edx, edi
call fcn.00401f50
add esp, 0xc
cmp eax, ebx
jne 0x450d02
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], edx
call fcn.0044f320
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
push ecx
mov ecx, esi
mov edx, edi
call fcn.00401f50
add esp, 0xc
cmp eax, ebx
jne 0x450d02
push esi
call fcn.0057832c
add esp, 4
push edi
call fcn.0057832c
add esp, 4
lea esi, [esp + 0x14]
call fcn.00410620
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 4
jne 0x450bc7
jmp 0x450c18
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0x14]
ja 0x450cc2
mov edx, dword [ebp + 0x10]
push eax
push esi
push edx
call fcn.0057e7b0
add esp, 0xc
push esi
call fcn.0057832c
add esp, 4
push edi
call fcn.0057832c
add esp, 4
lea esi, [esp + 0x14]
call fcn.00410620
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59f550
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 8]
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x450df9
call fcn.004129d0
cmp eax, ebx
jl 0x450de4
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x450e01
call fcn.004129d0
cmp eax, ebx
jge 0x450e01
cmp esi, ebx
je 0x450de4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
mov dword [esp + 0x20], esi
jmp 0x450db2
lea ecx, [edi + 0xa]
mov eax, ecx
and eax, 0x80000007
jns 0x450e12
dec eax
or eax, 0xfffffff8
inc eax
je 0x450e1d
mov edx, 8
sub edx, eax
mov eax, edx
add eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x38], 1
call fcn.00419050
call fcn.004021f0
mov ecx, dword [ebp + 0x10]
push eax
push edi
mov edi, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov edx, edi
call fcn.00401c40
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x24]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
test eax, eax
jne 0x450ea4
call fcn.004129d0
test eax, eax
jge 0x450ea4
push edi
call fcn.0057832c
add esp, 4
test esi, esi
je 0x450de4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push edi
push esi
call ebx
test eax, eax
jne 0x450ec1
call fcn.004129d0
test eax, eax
jl 0x450e77
push edi
call fcn.0057832c
add esp, 4
test esi, esi
je 0x450ed5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450ef0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x450fb4
call fcn.004129d0
test eax, eax
jl 0x450fac
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x800
push esi
mov dword [esp + 0x18], 0x800
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x450f55
call fcn.004129d0
test eax, eax
jl 0x450fa1
push 0x64
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0
call fcn.00419050
mov edi, dword [esp + 8]
push 0x64
push 0
push edi
call fcn.00580260
add esp, 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 0x64
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450fbb
call fcn.004129d0
test eax, eax
jge 0x450fbb
push edi
call fcn.0057832c
add esp, 4
test esi, esi
je 0x450fac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
add esp, 0xc
ret
mov esi, eax
jmp 0x450f24
push edi
call fcn.0057832c
add esp, 4
test esi, esi
je 0x450fcf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret