joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55cd40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x658498
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.0055bff0
test eax, eax
jne 0x55ce6f
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x55cdb9
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
mov al, byte [esi + 0x39]
test al, al
je 0x55cdc4
cmp al, 2
jne 0x55cdce
cmp byte [esi + 0x38], 5
je 0x55ce54
push 0x7565bc
lea ecx, [esp + 0x20]
call fcn.004027c0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push edx
call fcn.005646e0
movsx eax, byte [esi + 0x39]
movsx ecx, byte [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.0055b6c0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0x7580
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
push str.socks5:_init_reply_OK_n
mov ecx, esi
call fcn.0055b6c0
cmp byte [esi + 0x39], 2
mov edx, dword [esp + 0x20]
sete cl
mov byte [edx], cl
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x55d630
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x65c268
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00402500
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x194]
mov ecx, dword [eax + 0x14c]
mov edx, dword [eax + 0x148]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.___s__s
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x24]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x55d697
sub eax, edi
mov byte [ecx], 1
mov edi, ecx
mov ecx, dword [esi + 0x194]
mov ebx, eax
mov eax, dword [ecx + 0x148]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55d6b6
sub eax, edx
mov ecx, eax
mov byte [edi + 1], cl
mov edx, dword [esi + 0x194]
mov eax, dword [edx + 0x14c]
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x55d6d3
push str.sending_socks5_auth
movzx ecx, cl
sub eax, ebp
push 0
mov byte [ecx + edi + 2], al
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push ebx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
push str.socks5:_sending_auth_n
mov ecx, esi
mov edi, eax
call fcn.0055b6c0
mov dword [esi + 0x40], 0
cmp edi, 0x2733
jne 0x55d723
xor edi, edi
jmp 0x55d727
test edi, edi
jne 0x55d731
mov dword [esi + 0x9c], 0x1f
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x55d760
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x658498
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
push 0
mov ecx, 2
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
mov eax, dword [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_init_reply
push edi
mov ecx, esi
call fcn.0055bff0
test eax, eax
jne 0x55d87e
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x55d7d9
mov eax, 0x2733
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
cmp byte [esi + 0x39], 0
jne 0x55d80c
mov al, byte [esi + 0x38]
cmp al, 5
je 0x55d7ea
cmp al, 1
jne 0x55d80c
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.0055b6c0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
push 0x7565c0
lea ecx, [esp + 0x20]
call fcn.004027c0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push edx
call fcn.005646e0
movsx eax, byte [esi + 0x39]
movsx ecx, byte [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Sock_ver___d__reply___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x2c]
add esp, 0x10
push eax
mov ecx, esi
call fcn.0055b6c0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402570
mov eax, 0x757f
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x55d8a0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x6584c0
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov edi, dword [ebp + 0x8c]
mov dword [ebp - 0x21c], edi
mov ecx, 1
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x424], ebx
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x55d936
mov edx, dword [eax]
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x220], 2
mov edx, dword [eax]
mov dword [ebp - 0x420], edx
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x90]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x1c]
push edx
neg eax
sbb eax, eax
lea ecx, [ebp - 0x424]
and eax, ecx
push eax
push ebx
lea edx, [ebp - 0x220]
push edx
lea eax, [edi + 1]
push eax
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x55d9a6
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
push edi
push ebx
push str.Select_failed__err_code___d__socket___d_n
lea ecx, [ebp]
push ecx
call fcn.0061af5b
add esp, 0x10
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [0x755a10]
push eax
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov eax, ebx
jmp 0x55da4c
cmp eax, ebx
jne 0x55d9db
cmp dword [ebp + 0x90], ebx
je 0x55d9d4
mov ecx, dword [0x755a18]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
push 1
mov edx, dword [0x755a18]
push edx
mov ecx, esi
call fcn.0055bf00
mov eax, 0x7532
jmp 0x55da4c
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x55da18
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x55da11
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [esi + 0x108]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x55da18
mov eax, 0x7540
jmp 0x55da4c
xor eax, eax
jmp 0x55da4c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8
Function at 0x560cc0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0x672498
xor edi, edi
call fcn.00447490
mov ebp, dword [esp + 0x1c]
mov esi, eax
add esp, 4
test esi, esi
je 0x560d1a
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x560d0e
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
push ebp
push edi
push edi
push 0x1a
push edi
call ebx
test eax, eax
jne 0x560d08
lea edi, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
test edi, edi
jne 0x560d69
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x560d69
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
push eax
push str.AppData
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x560d5e
lea edi, [eax + 1]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x560e40
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x649568
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x755860], 0
je 0x560e9d
cmp dword [0x755864], 0
je 0x560e9d
cmp dword [0x755868], 0
je 0x560e9d
cmp dword [0x75586c], 0
je 0x560e9d
mov eax, 1
jmp 0x560fcc
mov eax, dword [0x75585c]
test eax, eax
jne 0x560f0c
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov word [esp + 0xc], ax
mov dword [esp + 0x20], eax
mov eax, dword [0x754c5c]
test eax, eax
jne 0x560ec5
mov eax, 0x754c60
push 0
push eax
push str._sidmindex.dll
lea ecx, [esp + 0x14]
call fcn.004021b0
mov eax, dword [esp + 8]
test eax, eax
jne 0x560ee2
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x75585c], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00401210
mov eax, dword [0x75585c]
test eax, eax
je 0x560fa2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
mov ecx, dword [0x75585c]
push str.sqlite3_close
push ecx
mov dword [0x755860], eax
call esi
mov edx, dword [0x75585c]
push str.sqlite3_exec
push edx
mov dword [0x755864], eax
call esi
mov dword [0x755868], eax
mov eax, dword [0x75585c]
push str.sqlite3_free
push eax
call esi
mov ecx, dword [0x75585c]
push str.sqlite3_blob_open
push ecx
mov dword [0x75586c], eax
call esi
mov edx, dword [0x75585c]
push str.sqlite3_blob_close
push edx
mov dword [0x755870], eax
call esi
mov dword [0x755874], eax
mov eax, dword [0x75585c]
push str.sqlite3_blob_bytes
push eax
call esi
mov ecx, dword [0x75585c]
push str.sqlite3_blob_read
push ecx
mov dword [0x755878], eax
call esi
mov dword [0x75587c], eax
cmp dword [0x755860], 0
je 0x560fca
cmp dword [0x755864], 0
je 0x560fca
cmp dword [0x755868], 0
je 0x560fca
cmp dword [0x75586c], 0
jne 0x560e93
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0061807e
add esp, 0x1c
ret
Function at 0x562a20
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movzx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x562a33
jmp dword [ecx*4 + 0x562abc]
mov al, 0x41
ret 4
mov al, 0x42
ret 4
mov al, 0x43
ret 4
mov al, 0x44
ret 4
mov al, 0x45
ret 4
mov al, 0x46
ret 4
mov al, 0x47
ret 4
mov al, 0x48
ret 4
mov al, 0x49
ret 4
mov al, 0x4a
ret 4
mov al, 0x4b
ret 4
mov al, 0x4c
ret 4
mov al, 0x4d
ret 4
mov al, 0x4e
ret 4
mov al, 0x4f
ret 4
mov al, 0x50
ret 4
mov al, 0x51
ret 4
mov al, 0x52
ret 4
mov al, 0x53
ret 4
mov al, 0x54
ret 4
mov al, 0x55
ret 4
mov al, 0x56
ret 4
mov al, 0x57
ret 4
mov al, 0x58
ret 4
mov al, 0x59
ret 4
mov al, 0x5a
ret 4

Function at 0x563190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x65ee48
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
push str._04d_02d_02d_02d_02d_02d
push eax
call fcn.00619a6e
add esp, 0x20
cmp eax, 6
jne 0x563260
lea ecx, [esp + 0x30]
call fcn.00402500
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
push str._04d_02d_02d__02d:_02d:_02d_GMT
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x50]
add esp, 0x20
push edx
mov ecx, esi
call fcn.00562d70
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.00402570
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4

Function at 0x563280
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x564020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658990
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [edi + 4]
cmp word [eax], bx
je 0x5640d6
cmp byte [edi + 0x418], bl
je 0x5640d6
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x564098
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5640d6
mov dword [ebp - 0x14], ebx
push 2
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5640a0
sub eax, edx
test esi, esi
mov ecx, esi
jne 0x5640b5
mov ecx, dword [edi + 0x41c]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x5640cf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x564123
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
jne 0x56414e
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x41c]
cmp eax, 0xffffffff
je 0x564237
push ebx
push ebp
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x564185
test ebx, ebx
jne 0x564185
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5641a8
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.0061cd30
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x5641ad
jg 0x5641a8
cmp eax, method.CTreeCtrl.virtual_4
jbe 0x5641ad
mov ebp, 1
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x56421e
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
cmp eax, 0xffffffff
je 0x564234
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.00564020
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
mov ecx, dword [esi + 0x41c]
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x564240
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x564350
lea eax, [esp + 0x10]
push eax
call fcn.0061bba1
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x564279
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x420], ecx
pop esi
add esp, 0x18
ret
lea edx, [eax + 5]
mov eax, dword [esp + 0x10]
cmp edx, eax
jge 0x564350
mov ecx, dword [esi + 0x41c]
push ebx
push ebp
push edi
mov dword [esi + 0x420], eax
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x5642bc
test ebx, ebx
jne 0x5642bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5642df
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.0061cd30
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x5642e4
jg 0x5642df
cmp eax, method.CTreeCtrl.virtual_4
jbe 0x5642e4
mov ebp, 1
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x56434d
mov eax, dword [esi + 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x41c], eax
cmp eax, 0xffffffff
je 0x56434d
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push str.Log_h_b_cleared_n
mov ecx, esi
call fcn.00564020
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret

Function at 0x564390
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x5643fb
lea eax, [esp + 4]
push eax
call fcn.0061bba1
movzx ecx, word [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
push edx
lea eax, [esp + 0x20]
push str.Time:__ld._ld_n
push eax
call fcn.0061af5b
lea eax, [esp + 0x28]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5643d8
push 0
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esi + 0x41c]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.0061807e
add esp, 0x54
ret
Function at 0x564500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6589f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x564573
push ebx
push ebx
push 4
push ebx
push 3
push 0xc0000000
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x56459f
mov dword [ebp - 0x14], ebx
push 2
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, ebx
je 0x564573
mov edi, esi
jmp 0x564579
mov edi, dword [edi + 0x41c]
push ebx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, ebx
je 0x564598
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x564900
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
mov esi, dword [esp + 0x3c]
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebp
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebp
sub eax, 4
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
sbb ecx, ebp
push eax
mov dword [esp + 0x2c], ecx
call ebx
cmp eax, 0xffffffff
jne 0x564964
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x564ac1
mov eax, dword [edi + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x564af6
cmp dword [esp + 0x10], 4
jne 0x564af6
lea ecx, [esp + 0x24]
push ecx
call fcn.005a25a0
add esp, 4
cmp eax, ebp
jbe 0x564af6
xor edx, edx
mov ecx, 0xfffffffc
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
add dword [esi], ecx
mov ecx, dword [esi]
adc dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, ebp
jl 0x564af6
jg 0x5649d3
cmp ecx, ebp
jbe 0x564af6
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebx
cmp eax, 0xffffffff
jne 0x5649fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x564ac1
mov eax, dword [edi + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x564a27
cmp dword [esp + 0x10], 0xc
jne 0x564af6
cmp byte [esp + 0x38], 0
je 0x564a35
cmp byte [esp + 0x24], 8
jmp 0x564a4a
cmp byte [esp + 0x24], 9
jne 0x564930
mov cl, byte [esp + 0x2f]
and cl, 0xf0
cmp cl, 0x10
jne 0x564930
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x564930
lea edx, [esp + 0x28]
push edx
call fcn.005a2570
movsx ecx, byte [esp + 0x2f]
mov edx, dword [esp + 0x24]
add esp, 4
shl ecx, 0x18
or ecx, eax
push 2
lea eax, [esp + 0x18]
push eax
mov dword [edx], ecx
mov ecx, dword [edi + 0x14]
push ebp
push ecx
mov dword [esp + 0x24], ebp
call ebx
cmp eax, 0xffffffff
jne 0x564adf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x564adf
mov ecx, edi
call fcn.005647d0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0061807e
add esp, 0x24
ret 0x10
mov ecx, edi
call fcn.005647d0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0061807e
add esp, 0x24
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0061807e
add esp, 0x24
ret 0x10
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0061807e
add esp, 0x24
ret 0x10