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

Disassembly:
push 0xffffffffffffffff
push 0x65d7c8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x755898]
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.00560c30
test eax, eax
jne 0x5624be
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], 2
jge 0x562419
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 0x56244c
mov al, byte [esi + 0x38]
cmp al, 5
je 0x56242a
cmp al, 1
jne 0x56244c
push str.socks5:_auth_reply_OK_n
mov ecx, esi
call fcn.00560320
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 0x75c5b8
lea ecx, [esp + 0x20]
call fcn.004027f0
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.00560b40
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0xac]
push edx
call fcn.00569300
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.00560320
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 0x5624e0
Capabilities:
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x65d820
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x755898]
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 0x562576
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 0x5625e6
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.006201db
add esp, 0x10
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.00560320
mov eax, dword [0x75ba08]
push eax
mov ecx, dword [esi + 0xac]
call fcn.00569300
mov eax, ebx
jmp 0x56268c
cmp eax, ebx
jne 0x56261b
cmp dword [ebp + 0x90], ebx
je 0x562614
mov ecx, dword [0x75ba10]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.00569300
push 1
mov edx, dword [0x75ba10]
push edx
mov ecx, esi
call fcn.00560b40
mov eax, 0x7532
jmp 0x56268c
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x562658
lea ecx, [ebp - 0x424]
push ecx
mov edx, dword [eax]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x562651
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 0x562658
mov eax, 0x7540
jmp 0x56268c
xor eax, eax
jmp 0x56268c
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.0061d2ff
add ebp, 0x84
mov esp, ebp
pop ebp
ret 8
Function at 0x5658e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0x678488
xor edi, edi
call fcn.00447580
mov ebp, dword [esp + 0x1c]
mov esi, eax
add esp, 4
test esi, esi
je 0x56593a
push ebx
push str.SHGetFolderPathW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x56592e
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 0x565928
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 0x565989
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 0x565989
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 0x56597e
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 0x565a60
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x643528
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x75b858], 0
je 0x565abd
cmp dword [0x75b85c], 0
je 0x565abd
cmp dword [0x75b860], 0
je 0x565abd
cmp dword [0x75b864], 0
je 0x565abd
mov eax, 1
jmp 0x565bec
mov eax, dword [0x75b854]
test eax, eax
jne 0x565b2c
mov dword [esp + 8], eax
mov dword [esp + 0x10], eax
mov word [esp + 0xc], ax
mov dword [esp + 0x20], eax
mov eax, dword [0x75ac4c]
test eax, eax
jne 0x565ae5
mov eax, 0x75ac50
push 0
push eax
push str._sidmindex.dll
lea ecx, [esp + 0x14]
call fcn.004021b0
mov eax, dword [esp + 8]
test eax, eax
jne 0x565b02
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x75b854], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 8]
call fcn.00401210
mov eax, dword [0x75b854]
test eax, eax
je 0x565bc2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
mov ecx, dword [0x75b854]
push str.sqlite3_close
push ecx
mov dword [0x75b858], eax
call esi
mov edx, dword [0x75b854]
push str.sqlite3_exec
push edx
mov dword [0x75b85c], eax
call esi
mov dword [0x75b860], eax
mov eax, dword [0x75b854]
push str.sqlite3_free
push eax
call esi
mov ecx, dword [0x75b854]
push str.sqlite3_blob_open
push ecx
mov dword [0x75b864], eax
call esi
mov edx, dword [0x75b854]
push str.sqlite3_blob_close
push edx
mov dword [0x75b868], eax
call esi
mov dword [0x75b86c], eax
mov eax, dword [0x75b854]
push str.sqlite3_blob_bytes
push eax
call esi
mov ecx, dword [0x75b854]
push str.sqlite3_blob_read
push ecx
mov dword [0x75b870], eax
call esi
mov dword [0x75b874], eax
cmp dword [0x75b858], 0
je 0x565bea
cmp dword [0x75b85c], 0
je 0x565bea
cmp dword [0x75b860], 0
je 0x565bea
cmp dword [0x75b864], 0
jne 0x565ab3
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.0061d2ff
add esp, 0x1c
ret
Function at 0x567640
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movzx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x567653
jmp dword [ecx*4 + 0x5676dc]
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 0x567db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x65dcb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x755898]
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.0061ecee
add esp, 0x20
cmp eax, 6
jne 0x567e80
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.00567990
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 0x567ea0
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 0x568c40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65dce0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x755898]
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 0x568cf6
cmp byte [edi + 0x418], bl
je 0x568cf6
xor esi, esi
cmp dword [edi + 0x41c], 0xffffffff
jne 0x568cb8
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 0x568cf6
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 0x568cc0
sub eax, edx
test esi, esi
mov ecx, esi
jne 0x568cd5
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 0x568cef
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 0x568d43
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
jne 0x568d6e
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 0x568e57
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 0x568da5
test ebx, ebx
jne 0x568da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x568dc8
mov edx, dword [esp + 0x18]
push 1
push 0
push 0
push edx
call fcn.00621c40
add eax, edi
adc edx, ebx
mov dword [esp + 0x14], edx
js 0x568dcd
jg 0x568dc8
cmp eax, 0x4c4b40
jbe 0x568dcd
mov ebp, 1
mov dword [esp + 0x10], ebx
test ebp, ebp
je 0x568e3e
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 0x568e54
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.00568c40
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 0x568e60
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x568f70
lea eax, [esp + 0x10]
push eax
call fcn.00620e21
mov eax, dword [esi + 0x420]
add esp, 4
test eax, eax
jne 0x568e99
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 0x568f70
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 0x568edc
test ebx, ebx
jne 0x568edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x568eff
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.00621c40
add eax, edi
adc edx, ebx
mov dword [esp + 0x18], edx
js 0x568f04
jg 0x568eff
cmp eax, 0x4c4b40
jbe 0x568f04
mov ebp, 1
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x568f6d
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 0x568f6d
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.00568c40
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x18
ret

Function at 0x568fb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x54
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
mov esi, ecx
cmp dword [esi + 0x41c], 0xffffffff
je 0x56901b
lea eax, [esp + 4]
push eax
call fcn.00620e21
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.006201db
lea eax, [esp + 0x28]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568ff8
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.0061d2ff
add esp, 0x54
ret
Function at 0x569120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65dd40
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x755898]
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 0x569193
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 0x5691bf
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 0x569193
mov edi, esi
jmp 0x569199
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 0x5691b8
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 0x569520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x755898]
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 0x569584
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5696e1
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 0x569716
cmp dword [esp + 0x10], 4
jne 0x569716
lea ecx, [esp + 0x24]
push ecx
call fcn.005a76d0
add esp, 4
cmp eax, ebp
jbe 0x569716
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 0x569716
jg 0x5695f3
cmp ecx, ebp
jbe 0x569716
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 0x56961d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x5696e1
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 0x569647
cmp dword [esp + 0x10], 0xc
jne 0x569716
cmp byte [esp + 0x38], 0
je 0x569655
cmp byte [esp + 0x24], 8
jmp 0x56966a
cmp byte [esp + 0x24], 9
jne 0x569550
mov cl, byte [esp + 0x2f]
and cl, 0xf0
cmp cl, 0x10
jne 0x569550
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
jl 0x569550
lea edx, [esp + 0x28]
push edx
call fcn.005a76a0
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 0x5696ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x5696ff
mov ecx, edi
call fcn.005693f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x24
ret 0x10
mov ecx, edi
call fcn.005693f0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0061d2ff
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.0061d2ff
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.0061d2ff
add esp, 0x24
ret 0x10
Function at 0x569730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push 0
lea ecx, [esp + 0x1c]
push ecx
mov byte [eax], 0
mov edx, dword [esi + 0x14]
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x56978c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test eax, eax
je 0x56978c
mov ecx, esi
call fcn.005693f0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5697c4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
jne 0x5697c4
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
push 0
adc ecx, ebx
add eax, 4
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x56980e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x56980e
mov ecx, esi
call fcn.005693f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18
Function at 0x569a90
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x14]
cmp eax, 0xffffffff
jne 0x569a9f
xor eax, eax
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp eax, 0xffffffff
jne 0x569ade
cmp dword [esi + 4], 0
jne 0x569ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x569ade
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.00621c40
add dword [esi], eax
mov eax, 1
adc dword [esi + 4], edx
pop esi
pop ecx
ret 4

Function at 0x569b10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
call fcn.005693f0
mov eax, dword [esp + 0x18]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x569b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x569c56
mov eax, 1
pop edi
add esp, 0x10
ret 0xc
push ebx
push esi
lea esi, [edi + 8]
push esi
mov ecx, edi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00569a90
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x569b8b
mov eax, dword [ebx]
cdq
cmp edx, dword [esi + 4]
jl 0x569b8b
jg 0x569b87
cmp eax, dword [esi]
jbe 0x569b8b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx]
mov ecx, dword [esi]
cdq
sub ecx, eax
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sbb eax, edx
push 0
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 ebp
cmp eax, 0xffffffff
jne 0x569bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x569c1e
mov eax, dword [ebx]
test eax, eax
je 0x569c31
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [edi + 0x14]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x569c3d
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx]
jne 0x569c3d
mov eax, dword [edi + 0x14]
push 2
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x569c31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x569c31
mov ecx, edi
call fcn.005693f0
pop ebp
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x10
ret 0xc
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.005693f0
test esi, esi
jne 0x569c25
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
pop edi
add esp, 0x10
ret 0xc