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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9410
mov esi, eax
cmp esi, 0xffffffff
je 0x49785a
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0xa
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497853
cmp dword [esp + 0x18], 0xa
jne 0x497853
cmp dword [esp + 8], 0x38464947
jne 0x497853
mov ax, word [esp + 0xc]
cmp ax, 0x6139
je 0x497834
cmp ax, 0x6137
jne 0x497853
movzx ecx, word [esp + 0xe]
mov eax, dword [esp + 0x1c]
movzx edx, word [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x497870
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc0]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
push 1
push eax
xor esi, esi
call fcn.004a9410
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4979dc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x49792d
mov ecx, dword [esp + 0x34]
push esi
push esi
add ecx, 0xffffff80
push ecx
push ebx
call fcn.004aebe0
test eax, eax
je case.default.0x49792d
push esi
lea edx, [esp + 0x10]
push edx
push 0x80
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x49792d
cmp dword [esp + 0xc], 0x80
jne case.default.0x49792d
cmp byte [esp + 0x44], 0x54
jne case.default.0x49792d
cmp byte [esp + 0x45], 0x41
jne case.default.0x49792d
cmp byte [esp + 0x46], 0x47
jne case.default.0x49792d
cmp ebp, 6
ja case.default.0x49792d
jmp dword [ebp*4 + 0x4979f8]
push 0x1e
lea ecx, [esp + 0x4b]
push ecx
push edi
call fcn.00524d50
jmp 0x4979d0
push 0x1e
lea edx, [esp + 0x69]
push edx
push edi
call fcn.00524d50
jmp 0x4979d0
push 0x1e
lea eax, [esp + 0x87]
push eax
push edi
call fcn.00524d50
jmp 0x4979d0
push 4
lea ecx, [esp + 0xa5]
push ecx
push edi
call fcn.00524d50
jmp 0x4979d0
push 0x1e
lea edx, [esp + 0xa9]
push edx
push edi
call fcn.00524d50
jmp 0x4979d0
cmp byte [esp + 0xc1], 0
jne case.default.0x49792d
mov al, byte [esp + 0xc2]
test al, al
je case.default.0x49792d
movzx eax, al
push eax
push 0x55068c
push edi
call fcn.00523500
add esp, 0xc
jmp 0x4979d0
mov al, byte [esp + 0xc3]
cmp al, 0x7e
jae case.default.0x49792d
movzx ecx, al
mov edx, dword [ecx*4 + 0x58bff8]
push edx
push edi
call fcn.00523040
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054899c
add esp, 0xbc
ret 8
Function at 0x49cd60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x144
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
xor edi, edi
lea esp, [esp]
mov eax, dword [ebx + 0x58c478]
push eax
push ebp
call fcn.0051c7d0
test eax, eax
je 0x49cdcb
add ebx, 0xc
add edi, 1
cmp ebx, 0x60
jb 0x49cd90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054899c
add esp, 0x144
ret 4
mov edx, dword [0x59812c]
lea edi, [edi + edi*2]
add edi, edi
movzx ecx, word [edi + edi + 0x58c480]
add edi, edi
push 0xa
push ecx
push edx
call dword [0x597c8c]
mov ebp, eax
test ebp, ebp
je 0x49cdac
mov eax, dword [0x59812c]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jle 0x49cdac
mov ecx, dword [0x59812c]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x49cdac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49cecc
lea edx, [esp + 0x40]
push edx
call fcn.00522730
mov eax, dword [0x59812c]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004acea0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004ad6f0
lea ecx, [esp + 0x40]
push ecx
call fcn.00401260
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x58c47c]
push 0
push 0
push 0
push 0
push 0
push 1
push edx
push eax
mov eax, ebx
cdq
push edx
push eax
push ecx
mov edi, esi
call fcn.0049b330
push ebp
mov eax, ebx
mov ecx, esi
call fcn.0049b260
call fcn.0049abc0
mov edx, dword [esi]
mov eax, dword [0x5980d4]
push 0
push edx
mov dword [esi + 0x54], 1
mov ecx, dword [eax + 8]
push 0x401
push ecx
call dword [0x597dac]
mov edx, dword [esp + 0x14]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49cdb0
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49cdb0
Function at 0x4a1ff0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x20c
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x58a65b], 0
je 0x4a2098
mov eax, esi
call fcn.004a1f00
test eax, eax
je 0x4a2098
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [0x597da0]
test eax, eax
je 0x4a2098
lea ecx, [esi - 0x10]
shl eax, 0x10
cmp ecx, 0x80
ja case.0x4a204c.19
movzx ecx, byte [ecx + 0x4a20bc]
jmp dword [ecx*4 + 0x4a20b0]
or eax, 0x2000000
jmp case.0x4a204c.19
or eax, 0x1000000
push 0x104
lea edx, [esp + 4]
push edx
push eax
call dword [0x597d70]
test eax, eax
je 0x4a2098
lea eax, [esp]
push eax
push edi
call fcn.00523090
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0054899c
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0054899c
add esp, 0x20c
ret

Function at 0x4a2470
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00522730
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.00523090
mov edx, dword [esp + 8]
push 0
push 0
push edx
call fcn.00404f70
mov dword [0x598104], eax
lea eax, [esp]
push eax
call fcn.00401260
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0054899c
add esp, 0x114
ret

Function at 0x4a2630
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.004abb00
mov edi, eax
test edi, edi
je 0x4a26b5
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a26b5
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x10
push edi
mov esi, eax
call dword [0x597dac]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a26ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a26ad
push str.Timed_out_while_waiting_for_Everything.exe_to_close
push str._main_close_existing_process
push 0x1c2
push str.._srcmain.c
call fcn.0048f250
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x4a36c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x34c
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [0x598104]
push ebp
push esi
push edi
xor edi, edi
cmp dword [eax + 0xc], edi
mov dword [esp + 0xc], edi
je 0x4a36f3
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x4a36f3
mov esi, eax
jmp 0x4a3702
mov eax, dword [0x597e54]
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov esi, ecx
lea edx, [esp + 0x134]
push edx
call fcn.00522730
lea eax, [esp + 0x134]
push str.EVERYTHING_TASKBAR_NOTIFICATION
push eax
call fcn.00523500
add esp, 8
test esi, esi
je 0x4a375a
push 0x56c3d8
lea ecx, [esp + 0x138]
push ecx
call fcn.00522880
push esi
lea edx, [esp + 0x138]
push edx
call fcn.00522880
push 0x551010
lea eax, [esp + 0x138]
push eax
call fcn.00522880
mov ecx, dword [esp + 0x13c]
push ecx
call fcn.004abb00
lea edx, [esp + 0x134]
push edx
mov ebp, eax
call fcn.00401260
test ebp, ebp
je 0x4a38d1
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.00522730
lea ecx, [esp + 0x248]
push ecx
call fcn.00522730
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00523090
lea eax, [esp + 0x248]
push eax
call fcn.004ad200
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x18]
push edx
call dword [0x58ded0]
mov eax, dword [esp + 0x248]
mov ecx, dword [esp + 0x28]
lea edi, [eax + ecx + 6]
push edi
call fcn.004a3fd0
mov edx, dword [esp + 0x360]
mov esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add eax, 1
push eax
push ecx
lea ebx, [esi + 4]
push ebx
call fcn.00548d20
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x34]
add edx, 1
push edx
push eax
lea edx, [ebx + ecx + 1]
push edx
call fcn.00548d20
push str.send_cl_n
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], esi
call fcn.0048f0a0
mov edi, dword [0x597dc0]
add esp, 0x1c
lea eax, [esp + 0x14]
push eax
push 0x7530
push 9
push 0
push 0
push 0x400
push ebp
call edi
test eax, eax
pop ebx
je 0x4a389c
cmp dword [esp + 0x10], 0
je 0x4a3895
lea ecx, [esp + 0x10]
push ecx
push 0x7530
push 9
lea edx, [esp + 0x24]
push edx
push 0
push 0x4a
push ebp
call edi
push str.send_message_ok_n
mov dword [esp + 0x10], 1
push 0xff00ff00
jmp 0x4a38a6
push str.version_send_message_bad_version_n
jmp 0x4a38a1
push str.version_send_message_failed_n
push 0xffff0000
call fcn.0048f0c0
add esp, 8
push esi
call fcn.004a4030
lea eax, [esp + 0x244]
push eax
call fcn.00401260
lea ecx, [esp + 0x24]
push ecx
call fcn.00401260
mov eax, dword [esp + 0xc]
jmp 0x4a38d3
mov eax, edi
mov ecx, dword [esp + 0x354]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0054899c
add esp, 0x34c
ret 4
Function at 0x4a3970
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x32c
mov eax, dword [0x596f48]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4a3ac9
mov ebx, dword [0x597c70]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
lea eax, [esp + 0x124]
push eax
call fcn.00522730
lea ecx, [esp + 0x14]
push ecx
call fcn.00522730
lea edx, [esp + 0x14]
push str.EVERYTHING_MUTEX
push edx
call fcn.00523500
add esp, 8
call fcn.004a3690
test eax, eax
je 0x4a39fd
call fcn.004a3690
push eax
lea eax, [esp + 0x18]
push 0x56c408
push eax
call fcn.005236a0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.00526830
lea eax, [esp + 0x14]
push eax
call fcn.00401260
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x5980fc]
cmp eax, edi
je 0x4a3a36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5980fc], edi
mov eax, dword [esp + 0x12c]
cmp word [eax], di
je 0x4a3a5c
cmp word [eax], 0x5c
jne 0x4a3a4d
mov word [eax], 0x5f
add eax, 2
cmp word [eax], di
jne 0x4a3a42
mov eax, dword [esp + 0x12c]
push eax
push edi
push edi
call ebx
mov dword [0x5980fc], eax
call ebp
lea ecx, [esp + 0x124]
push ecx
mov esi, eax
call fcn.00401260
cmp esi, 0xb7
jne 0x4a3adb
push str.mutex_exists_n
call fcn.0048f0a0
mov edx, dword [0x598104]
add esp, 4
test dword [edx + 4], 0x800000
jne 0x4a3acd
mov eax, dword [esp + 0x340]
push eax
call fcn.004a36c0
test eax, eax
jne 0x4a3ac9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
jbe 0x4a39b3
xor eax, eax
jmp 0x4a3aec
mov dword [0x598100], 1
xor eax, eax
jmp 0x4a3aec
mov ecx, dword [0x598104]
mov eax, dword [ecx + 8]
shr eax, 0x17
not eax
and eax, 1
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054899c
add esp, 0x32c
ret 4

Function at 0x4a40d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov edi, dword [esp + 0x18]
jle 0x4a4108
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
push 0
push esi
push edi
push ebx
call ebp
cmp eax, 0xffffffff
je 0x4a4114
test eax, eax
je 0x4a4114
sub esi, eax
add edi, eax
test esi, esi
jg 0x4a40f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x4a41a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x14], ecx
mov eax, dword [0x58a69c]
test eax, eax
mov dword [esp + 0x10], ecx
je 0x4a41c8
cmp ecx, eax
jg 0x4a427e
push 0x10000
call fcn.004a3fd0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
je 0x4a41e1
mov dword [esi], eax
jmp 0x4a41e5
mov dword [esp + 0x18], eax
lea esi, [eax + 4]
lea ebx, [eax + 0x10000]
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [eax], 0
jae 0x4a4259
lea esp, [esp]
mov ecx, dword [esp + 0x28]
push 2
mov eax, ebx
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4a428a
test eax, eax
mov edi, esi
je 0x4a42f9
add eax, esi
cmp esi, eax
jae 0x4a4234
cmp byte [edi], 0xa
je 0x4a42a8
add edi, 1
cmp edi, eax
jb 0x4a4228
mov edx, dword [esp + 0x28]
push 0
mov ebp, edi
sub ebp, esi
push ebp
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebp
jne 0x4a43a2
cmp edi, ebx
mov esi, edi
jb 0x4a4200
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
xor ecx, ecx
cmp byte [ebx - 1], 0xd
setne cl
sub ecx, 1
and ecx, eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffc
jmp 0x4a41b3
push eax
push ecx
push str._d____d_n
jmp 0x4a43ab
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
jmp 0x4a43b8
mov edx, dword [esp + 0x28]
mov ebp, edi
push 0
sub ebp, esi
lea ebx, [ebp + 1]
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
je 0x4a42ce
push ebx
push eax
push str.ret__d___p_d1__d_n
jmp 0x4a43ab
test ebp, ebp
je 0x4a42ed
cmp byte [edi - 1], 0xd
mov dword [esp + 0x14], 0
jne 0x4a42e3
add edi, 0xffffffff
mov eax, edi
sub eax, esi
add dword [esp + 0x10], eax
jmp 0x4a42f9
cmp dword [esp + 0x14], 0
je 0x4a42f9
sub dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
mov ecx, dword [0x58a69c]
lea eax, [edx + 1]
cmp eax, ecx
jle 0x4a4316
push ecx
push edx
push str.buflen__d__1____d_n
jmp 0x4a43ab
mov ebx, dword [esp + 0x2c]
cmp eax, dword [ebx + 4]
jle 0x4a4326
push eax
push ebx
call fcn.00401210
mov ebp, dword [ebx + 8]
sub edi, esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4a438f
mov ebx, dword [esi]
test ebx, ebx
je 0x4a4373
cmp dword [esp + 0x14], esi
jne 0x4a4359
push 0xfffb
lea ecx, [esi + 4]
push ecx
push ebp
call fcn.00548d20
add esp, 0xc
add ebp, 0xfffb
jmp 0x4a4383
push 0xfffc
lea edx, [esi + 4]
push edx
push ebp
call fcn.00548d20
add esp, 0xc
add ebp, 0xfffc
jmp 0x4a4383
push edi
lea eax, [esi + 4]
push eax
push ebp
call fcn.00548d20
add esp, 0xc
add ebp, edi
push esi
call fcn.004a4030
test ebx, ebx
mov esi, ebx
jne 0x4a4333
pop edi
pop esi
mov byte [ebp], 0
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 8
sub edi, esi
push edi
push eax
push str.ret__d___p_d__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a43ce
mov esi, dword [eax]
push eax
call fcn.004a4030
test esi, esi
mov eax, esi
jne 0x4a43c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 8
Function at 0x4a43e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x10], ecx
mov eax, dword [0x58a69c]
test eax, eax
je 0x4a4404
cmp ecx, eax
jg 0x4a4466
push 0x10000
call fcn.004a3fd0
cmp dword [esp + 0x14], 0
mov edi, eax
je 0x4a441b
mov dword [esi], edi
jmp 0x4a441f
mov dword [esp + 0x14], edi
lea esi, [edi + 4]
lea ebx, [edi + 0x10000]
cmp esi, ebx
mov dword [esp + 0x1c], edi
mov dword [edi], 0
jae 0x4a4454
push 0
mov eax, ebx
sub eax, esi
push eax
push esi
push ebp
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4a446f
test eax, eax
je 0x4a448a
add esi, eax
cmp esi, ebx
jb 0x4a4436
add dword [esp + 0x10], 0xfffc
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
jmp 0x4a43f7
push eax
push ecx
push str._d____d_n
jmp 0x4a44aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
jmp 0x4a44b7
mov edx, dword [esp + 0x10]
mov ecx, esi
sub ecx, edi
lea ecx, [edx + ecx - 4]
mov edx, dword [0x58a69c]
lea eax, [ecx + 1]
cmp eax, edx
jle 0x4a44da
push edx
push ecx
push str.buflen__d1____d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a44ce
nop
mov esi, dword [eax]
push eax
call fcn.004a4030
test esi, esi
mov eax, esi
jne 0x4a44c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x20]
cmp eax, dword [edi + 4]
jle 0x4a44ea
push eax
push edi
call fcn.00401210
mov ebx, dword [edi + 8]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a4540
cmp edi, dword [esp + 0x1c]
mov ebp, dword [edi]
jne 0x4a451c
mov eax, esi
sub eax, edi
sub eax, 4
push eax
lea ecx, [edi + 4]
push ecx
push ebx
call fcn.00548d20
mov edx, esi
add esp, 0xc
sub edx, edi
lea ebx, [ebx + edx - 4]
jmp 0x4a4534
push 0xfffc
lea eax, [edi + 4]
push eax
push ebx
call fcn.00548d20
add esp, 0xc
add ebx, 0xfffc
push edi
call fcn.004a4030
test ebp, ebp
mov edi, ebp
jne 0x4a44f5
pop edi
pop esi
pop ebp
mov byte [ebx], 0
mov eax, 1
pop ebx
add esp, 8
ret 8
Function at 0x4a4560
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov ebx, eax
xor edi, edi
cmp ebx, 0x50
mov dword [esp + 0x1c], edi
push ebx
jb 0x4a4757
call fcn.004a4070
mov edi, eax
test edi, edi
je 0x4a474a
push 0
push 0
push 0
push ebp
call fcn.004aebe0
test eax, eax
je 0x4a4730
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4722
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x4a471a
lea ecx, [edi + 3]
mov edx, str.NTFS
mov dword [esp + 0xc], 8
mov eax, ecx
sub edx, ecx
movzx ebx, byte [edx + eax]
movzx ebp, byte [eax]
sub ebp, ebx
jne 0x4a46f7
mov ebx, 1
add eax, ebx
sub dword [esp + 0xc], ebx
jne 0x4a45d7
movzx ecx, byte [edi + 0xd]
push ecx
push str.sectors_per_cluster__d_n
call fcn.0048f0a0
mov al, byte [edi + 0xd]
add esp, 8
cmp al, 0x80
ja 0x4a4611
movzx edx, al
jmp 0x4a461c
mov ecx, 0x100
sub ecx, eax
mov edx, ebx
shl edx, cl
movzx eax, word [edi + 0xb]
imul edx, eax
mov ecx, edx
push ecx
push str.bytes_per_cluster__d_n
mov dword [esi + 0x10], edx
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
add esp, 8
test edx, edx
je 0x4a46ee
movzx eax, word [edi + 0xb]
test eax, eax
mov dword [esi + 0x18], eax
je 0x4a46e5
mov cl, byte [edi + 0x40]
test cl, cl
jle 0x4a4662
movsx eax, cl
imul eax, edx
mov dword [esi + 0x14], eax
jmp 0x4a466b
neg ecx
mov edx, ebx
shl edx, cl
mov dword [esi + 0x14], edx
cmp dword [esi + 0x14], 0
je 0x4a46dc
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov ecx, dword [edi + 0x34]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x48]
mov dword [esi + 8], edx
mov edx, dword [esi]
mov eax, dword [edi + 0x4c]
push ecx
push edx
push str.mft_lcn__I64u_n
mov dword [esi + 0xc], eax
call fcn.0048f0a0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
push str.serial_number__I64u_n
call fcn.0048f0a0
mov edx, dword [esi + 0x10]
push edx
push str.bytes_per_cluster__u_n
call fcn.0048f0a0
mov eax, dword [esi + 0x14]
push eax
push str.bytes_per_file_record__u_n
call fcn.0048f0a0
add esp, 0x28
push edi
mov dword [esp + 0x20], ebx
call fcn.004a40b0
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret 4
push 0
push str.invalid_bytes_per_file_record__u_n
jmp 0x4a473c
push 0
push str.invalid_bytes_per_sector__u_n
jmp 0x4a473c
push 0
push str.invalid_bytes_per_cluster__u_n
jmp 0x4a473c
push 8
push ecx
push str.bad_NTFS_signature:__t_n
call fcn.0048f0a0
add esp, 0xc
push edi
call fcn.004a40b0
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
push eax
push str.unable_to_read_all_of_NTFS_boot_sector:__u_n
jmp 0x4a473c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_read_NTFS_boot_sector:__u_n
jmp 0x4a473c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.failed_to_set_file_pointer_to_boot_sector__u_n
call fcn.0048f0a0
add esp, 8
push edi
call fcn.004a40b0
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
push str.bad_sector_size__u_n
call fcn.0048f0a0
add esp, 8
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4a4810
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push 0
push ebx
push ebp
push edi
call fcn.004aebe0
test eax, eax
je 0x4a4877
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a485e
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4a489f
push esi
push eax
push str.NRFR_read_error__d____d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0x10
jmp 0x4a4877
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NRFR_read_error__d_n
push 0xffff0000
call fcn.0048f0c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebp
push str.read_error__I64x__d_n
push 0xffff0000
call fcn.0048f0c0
mov edx, dword [esp + 0x28]
push esi
push 0
push edx
call fcn.00549090
add esp, 0x20
pop ebp
pop ebx
ret 0xc