joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d2424
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
mov ebx, esi
jmp 0x4d245e
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x4e25e0]
mov eax, dword [eax]
call fcn.00470d90
push 1
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4e25e0]
mov eax, dword [eax]
call fcn.00470d90
sub ebx, esi
cmp edi, ebx
ja 0x4d2438
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4d246c
Capabilities:
Terminate process

Disassembly:
push ecx
push esp
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edx, dword [0x4e2048]
mov edx, dword [edx]
push edx
push eax
call sub.kernel32.dll_TerminateProcess
pop edx
ret

Function at 0x4d29c8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040467c
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4d2b36
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004a0b54
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004a0b74
jmp 0x4d2b02
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040443c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004090d4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040847c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040847c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004045d8
je 0x4d2ae2
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.0040443c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040847c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040847c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004045d8
jne 0x4d2af9
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004a0b94
test eax, eax
jne 0x4d2a43
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2b3d
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.004041f0
lea eax, [ebp - 4]
call fcn.004041cc
ret
Function at 0x4d35e8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x4d363d
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x4d3628
and byte [ebp - 0x72], 0xfe
jmp 0x4d362c
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x4d36c3
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x4d36c3
mov eax, ebx
and eax, 0xff
bt dword [0x4e1ff0], eax
jae 0x4d3693
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004d359c
pop ecx
cmp byte [ebp - 1], 0
je 0x4d36be
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004d359c
pop ecx
jmp 0x4d36be
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004d359c
pop ecx
cmp byte [ebp - 1], 0
je 0x4d36be
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004d359c
pop ecx
dec si
jne 0x4d3653
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d36cc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x4e1ff0], edx
jae 0x4d3704
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.004d359c
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.004d359c
pop ecx
pop ebx
pop ebp
ret
Function at 0x4013b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.ADVAPI32.DLL_OpenProcessToken
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
setne al
test al, al
je 0x40152a
mov dword [esp], 0x400
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov edx, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.ADVAPI32.DLL_GetTokenInformation
sub esp, 0x14
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
cmp dword [ebp - 0x14], 0
je 0x40151f
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 0x27], 0
mov byte [ebp - 0x26], 0
mov byte [ebp - 0x25], 5
lea eax, [ebp - 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x220
mov dword [esp + 8], 0x20
mov dword [esp + 4], 2
lea eax, [ebp - 0x2a]
mov dword [esp], eax
call sub.ADVAPI32.DLL_AllocateAndInitializeSid
sub esp, 0x2c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x401511
mov dword [ebp - 0x10], 0
jmp 0x401502
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*8 + 4]
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_EqualSid
sub esp, 8
test eax, eax
setne al
test al, al
je 0x4014ff
mov byte [ebp - 9], 1
jmp 0x401511
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
seta al
test al, al
jne 0x4014d4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.ADVAPI32.DLL_FreeSid
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0059fbf8
mov al, byte [ebp - 9]
jmp 0x401539
leave
ret
Function at 0x40153b
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x220
mov byte [ebp - 0x214], 0
mov dword [esp + 8], 0x200
lea eax, [ebp - 0x214]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4015d4
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x4015b5
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0xc]
add eax, edx
mov al, byte [eax]
cmp al, 0x2f
je 0x4015a2
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0xc]
add eax, edx
mov al, byte [eax]
cmp al, 0x5c
jne 0x4015b2
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0
jmp 0x4015c1
dec dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
not eax
shr eax, 0x1f
test al, al
jne 0x401580
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
sub esp, 4
test eax, eax
call fcn.004013b0
xor eax, 1
test al, al
je 0x40160e
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x5fd064
mov dword [esp + 4], str.You_must_run_this_app_as_Administrator.
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x401646
mov dword [esp], 0x18
call fcn.005ecb68
mov ebx, eax
mov dword [esp + 4], 0
lea eax, [ebp + 8]
mov dword [esp], eax
mov ecx, ebx
call fcn.004037a0
sub esp, 8
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x14]
mov ecx, eax
call fcn.00404652
mov eax, 0
jmp 0x40165e
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x402590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x402572
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
leave
ret
Function at 0x4025fa
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov dword [ebp - 0x14c], ecx
jmp 0x402759
mov dword [esp + 8], 0x128
mov dword [esp + 4], 0
lea eax, [ebp - 0x13c]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x13c], 0x128
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40266a
mov dword [esp], 0x7d0
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0x402759
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32First
sub esp, 8
mov dword [ebp - 0xc], eax
jmp 0x40272d
mov dword [esp + 4], str.iTunesHelper.exe
lea eax, [ebp - 0x13c]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x4026c4
mov dword [esp + 4], str.iTunes.exe
lea eax, [ebp - 0x13c]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x402712
mov eax, dword [ebp - 0x134]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x402712
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea eax, [ebp - 0x13c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne al
test al, al
jne 0x40268a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp], 0x7d0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, dword [ebp - 0x14c]
mov eax, dword [eax]
mov eax, dword [eax]
test eax, eax
setne al
test al, al
jne 0x40260e
mov eax, 0
jmp 0x40277f
leave
ret 4

Function at 0x4027a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x402783
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
leave
ret
Function at 0x402992
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov dword [esp], 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x402a29
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
jmp 0x402b78
mov eax, dword [ebp - 0xc]
shl eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402a8f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
jmp 0x402b78
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 8
mov dword [esp], 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
test eax, eax
sete al
test al, al
je 0x402b23
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0059fbf8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
jmp 0x402b78
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextW
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], 5
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0059fbf8
leave
ret 4
Function at 0x4056cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x14
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405716
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x11
mov dword [esp + 4], 1
mov dword [esp], str.Allocation_Error_n
call sub.msvcrt.dll_fwrite
mov eax, 0
jmp 0x405734
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x406453
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x5fde18
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406486
mov eax, 0xffffffff
jmp 0x406534
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
je 0x406516
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, 0xffffffff
jmp 0x406534
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
leave
ret

Function at 0x406536
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x5fde84
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406566
mov eax, 0xffffffff
jmp 0x4065b2
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0x10]
je 0x4065a4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, 0xffffffff
jmp 0x4065b2
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x4065b4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.005965d8
sub esp, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0x5fde18
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406616
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.could_not_open_source_file__s_for_reading_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xffffffff
jmp 0x406711
mov dword [esp + 4], 0x5fde84
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4066e4
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.could_not_open_target_file__s_for_writing_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, 0xffffffff
jmp 0x406711
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2000
mov dword [esp + 4], 1
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4066e5
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x2018]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
je 0x4066e5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0059fc68
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, 0xffffffff
jmp 0x406711
nop
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
and eax, 0x10
test eax, eax
je 0x40666a
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0059fc68
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.0059fc68
mov eax, 0
leave
ret
Function at 0x4069c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00406453
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x406a33
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x19
mov dword [esp + 4], 1
mov dword [esp], str.Unable_to_read_mbdb_file_n
call sub.msvcrt.dll_fwrite
mov eax, 0
jmp 0x406a8b
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040675d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406a7d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1a
mov dword [esp + 4], 1
mov dword [esp], str.Unable_to_parse_mbdb_file_n
call sub.msvcrt.dll_fwrite
mov eax, 0
jmp 0x406a8b
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0059fbf8
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x406b38
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp], 0x5c
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406b82
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x12
mov dword [esp + 4], 1
mov dword [esp], str.Allocation_Error__n
call sub.msvcrt.dll_fwrite
mov eax, 0
jmp 0x406ba0
mov dword [esp + 8], 0x5c
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x408bcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.00416612
test ax, ax
je 0x408c19
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s:_ERROR:_Could_not_connect_to_device._Cannot_reboot._n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xfffffffd
jmp 0x408db1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 0
lea edx, [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00418ca3
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x408c5d
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0041666b
mov dword [ebp - 0x10], 0
mov eax, 0xffffffff
jmp 0x408db1
mov word [ebp - 0x16], 0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x16]
mov dword [esp + 8], edx
mov dword [esp + 4], str.com.apple.mobile.diagnostics_relay
mov dword [esp], eax
call fcn.00418ec9
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00417e3f
mov ax, word [ebp - 0x16]
test ax, ax
jne 0x408cd5
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x32
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_Could_not_start_diagnostics_relay_service__n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0041666b
mov dword [ebp - 0x10], 0
mov eax, 0xffffffff
jmp 0x408db1
mov dword [ebp - 0x1c], 0
mov ax, word [ebp - 0x16]
movzx edx, ax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041b13b
test ax, ax
je 0x408d3f
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x2f
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_Could_not_connect_to_diagnostics_relay__n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0041666b
mov dword [ebp - 0x10], 0
mov eax, 0xffffffff
jmp 0x408db1
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041b33b
test ax, ax
je 0x408d8d
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x29
mov dword [esp + 4], 1
mov dword [esp], str.ERROR:_Could_not_perform_Restart_command_n
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0041b1d3
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0041b1a9
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0041666b
mov eax, dword [ebp - 0xc]
leave
ret